Reposting this. Even if there is no way to perform the quoting, any workaround ideas, short of creating additional script files, would be helpful.
On Thu, Mar 3, 2011 at 9:03 PM, Moshe Cohen <[email protected]> wrote: > Hi, > Let's say I want to have an exec action like this: > <[email protected]> > exec "/bin/bash -c 'mail -s "multi word subject" [email protected] ' " > > This will not work because the quotes around the subject collide with the > outer quotes. > I have tried several types of escaping these quotes or single quotes, but > have't found the way to do it. > How can I escape quotes so the command is passed to the bash script > properly? > >
-- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
