monvural All American 558 Posts user info edit post |
I want to ssh into another box and check to see if a process is running on that box. I've set up the keys in ssh to work properly and if I run it off the command line my commands work. When I run it through the php exec() command, they don't. Here's what I'm trying to do:
exec("ssh db2read@as20alyn; ps -ef | grep 'db2_extract.ksh'");
any suggestions?
TIA 8/5/2005 1:35:48 PM |
Noen All American 31346 Posts user info edit post |
are you running this on your local machine?
because if not, this isnt ever going to work. PHP is setup to run exec command either under the apache user or under the nobody user. Either way, unless you get creative with user and group permissions, it's either never going to work, or its going to be an ungodly bad bad bad security problem. 8/8/2005 6:24:22 AM |