jm33990 Posted June 8, 2009 Share Posted June 8, 2009 having trouble getting a job into the background from a script. tried.... exec("daemon /usr/sbin/tcpdump -w $date"); ...can't find deamon error msg tried.... exec("/usr/sbin/tcpdump -w $date \&"); ...syntax error tried... exec("/usr/sbin/tcpdump -w $date &") ...runs but not in bg I want it in bg because I intend to run script from cron. Any ideas? thx Link to comment https://forums.phpfreaks.com/topic/161384-solved-linux-background-job/ Share on other sites More sharing options...
jm33990 Posted June 8, 2009 Author Share Posted June 8, 2009 exec("/usr/sbin/tcpdump -w $date > /dev/null 2>&1 &"); ...is the answer Link to comment https://forums.phpfreaks.com/topic/161384-solved-linux-background-job/#findComment-851691 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.