Think about Loose Coupling | |
PerlMonks |
Re: How to get a persistent daemons after exiting the session?by tachyon (Chancellor) |
on Mar 11, 2003 at 00:22 UTC ( [id://241887]=note: print w/replies, xml ) | Need Help?? |
By the sounds of it what you want to do is have a server deamon running all the time. Your CGI then interacts with this re-initializing it and doing whatever else as required. There are endless examples of server daemons on this site as we as plenty of modules on CPAN. A problem with system calls per se and restarting services is permission. If the service is not running as the webuser 'nobody', 'apache', 'www', etc you need to have a suid script which opens a whole new bag of worms. With a custom server you can run it as the web user and avoid the issue entirely. cheers tachyon s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In Section
Seekers of Perl Wisdom
|
|