Jump to content

[SOLVED] linux background job


jm33990

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.