calling external shell script without waiting for its end

Marcus Schopen <[email protected]>
Newsgroups gmane.mail.mimedefang
Message-ID <[email protected]>
Hi,

happy new year to all! :)

When calling an external bash script in filter_end like

  system("/usr/local/bin/skript.sh $QueueID > /dev/null &");

I get the following error from time to time (mostly on receiving many
simultaneously mails):

Jan  2 18:38:13 serv mimedefang-multiplexor[7447]: v02HcBAF023342: Slave
1 stderr: shell-init: error retrieving current directory: getcwd: cannot
access parent directories: No such file or directory

Sending the command not into background with an ampersand avoids this
error, but I'm looking for something which triggers on an external
script and mimedefang should not wait for its finishing.

Ciao!
Marcus

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.