Code Comments
Programming Forum and web based access to our favorite programming groups.Hello, I currently develop in PHP but I have hit a wall. Is it possible to run this command and variations of it killall -USR2 appname via a web script in perl?? I have an app that runs on my development server and cant get PHP system() or exec() to work. If it is possible please direct me to some info on it. -- Eric Haskins RackSPEED.Net WebHosting from $4.99/month Dedicated Servers Multiple UpStream Providers
Post Follow-up to this messageIn article <QKj8d.49986$Si.9769@tornado.tampabay.rr.com>, Eric Haskins <hostmaster_s_p_a_m@rackspeed.net> wrote: > Hello, > > I currently develop in PHP but I have hit a wall. Is it possible to ru n > this command and variations of it > > killall -USR2 appname Yes. > > via a web script in perl?? I have an app that runs on my development serv er > and cant get PHP system() or exec() to work. If it is possible please > direct me to some info on it. Perl has a built-in kill function, but it works on PID numbers, not command names. You can also run the system version of killall with Perl's system function. If you have access to a perl installation, you can get more information with perldoc -f kill perldoc -f system A quick search of CPAN (http://search.cpan.org) yields the Proc::ProcessTable module with its associated Proc::Killall module. Those might prove useful. If they are installed in your perl, do perldoc Proc::ProcessTable perldoc Proc::Killall If that yields nothing, they are probably not installed. You can install modules with perl -MCPAN -e shell
Post Follow-up to this messageEric Haskins wrote: > Hello, > > I currently develop in PHP but I have hit a wall. Is it possible to ru n > this command and variations of it > > killall -USR2 appname > > via a web script in perl?? I have an app that runs on my development serv er > and cant get PHP system() or exec() to work. Are you having problems with system() in general, or just with killall? If it is the latter, then it is probably because the web server is running with a different UID than the app is running with. -Joe
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.