Re: calling external shell script without waiting for its end
Dianne Skoll <[email protected]>
| Newsgroups | gmane.mail.mimedefang |
|---|---|
| Organization | Roaring Penguin Software Inc. |
| Message-ID | <[email protected]> |
On Mon, 02 Jan 2017 19:26:44 +0100 Marcus Schopen <[email protected]> wrote: > When calling an external bash script in filter_end like > system("/usr/local/bin/skript.sh $QueueID > /dev/null &"); I hope you trust the contents of $QueueID implicitly... The MIMEDefang working directory gets deleted when the filter finishes. You most likely also want to be a little more careful with the standard file descriptors, so: system("cd / && /usr/local/bin/skript.sh $QueueID < /dev/null > /dev/null 2>&1 &") but more importantly... ask yourself what you need that for and whether it would be better to rewrite skript.sh in Perl and integrated it into your filter directly. Regards, Dianne. _______________________________________________ NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID. You may ignore it. Visit http://www.mimedefang.org and http://www.roaringpenguin.com MIMEDefang mailing list [email protected] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang