bala
06-25-2005, 07:41 AM
following php code is part of my script and owned by user "X"
(X is created by WHM)
exec ("./my_shell_script.sh> /dev/null &");
and my_shell_script.sh is a shell script and diven right permission to be executed;
contents of my shell script is
#!/bin/sh
while true
do
./my_program
sleep 1
done
I can run the php script on a redhat - works fine, "my_program" is listed in the current processos and its owned by the user "X"
so the same php script can terminate the program (" my_program") since its owned by the same user /owner
but when I run the same script in Fedora "my program" is not stable (I could see multiple instances and not stable) and its owned by user "nobody" - I am unable to reminate the program becasue the programm is runnng as nobody
note: shell is enabled on both redhat and fedora accounts
is it because i am using two different operating systems or I have configured the OS differently?
please help me
(X is created by WHM)
exec ("./my_shell_script.sh> /dev/null &");
and my_shell_script.sh is a shell script and diven right permission to be executed;
contents of my shell script is
#!/bin/sh
while true
do
./my_program
sleep 1
done
I can run the php script on a redhat - works fine, "my_program" is listed in the current processos and its owned by the user "X"
so the same php script can terminate the program (" my_program") since its owned by the same user /owner
but when I run the same script in Fedora "my program" is not stable (I could see multiple instances and not stable) and its owned by user "nobody" - I am unable to reminate the program becasue the programm is runnng as nobody
note: shell is enabled on both redhat and fedora accounts
is it because i am using two different operating systems or I have configured the OS differently?
please help me
