On Fri, 23 Jan 2004, Smart,Dan wrote: > Humm.... > > This command works every time from command line, but not passed as a param > from SA_RESTART. > "postfix stop ; sleep 15 ; /etc/init.d/spamassassin restart ; postfix start" > > It runs the postfix stop and then quits. Any idea why? I can create a sed > that patches the rules_du_jour each time putting the commands in one at a > time in the restart if block, which does work, but passing it as the > SA_RESTART parameter would be really nice. > > <<Dan>> >
Run it in a sub-shell, put the whole thing in parens: "(postfix stop ; sleep 15 ; /etc/init.d/spamassassin restart ; postfix start)" depending upon how that is parsed by your command processor, you may have to escape them. EG: "\(postfix stop ; sleep 15 ; /etc/init.d/spamassassin restart ; postfix start \)" This is basically a shell-scripting issue. -- Dave Funk University of Iowa <dbfunk (at) engineering.uiowa.edu> College of Engineering 319/335-5751 FAX: 319/384-0549 1256 Seamans Center Sys_admin/Postmaster/cell_admin Iowa City, IA 52242-1527 #include <std_disclaimer.h> Better is not better, 'standard' is better. B{ ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk