0

I have the following in /etc/inittab:
# Run webcam uploading utility - added by slp on 12/18/2003
cam:3:respawn:/home/salvatore/cam/runcam

runcam is:
[root@home cam]# ls -l runcam
-rwxr-xr-x 1 root salvatore 55 Dec 31 09:46 runcam

runcam contains:
[root@home cam]# cat runcam
webcam /home/salvatore/cam/.webcamrc >/dev/null 2>&1 &

[root@home cam]# uname -r
2.4.20-27.9

When the system is restarted, runcam doesnt appear in the process list. It also wont run if I type ./runcam. If I, as root, type the contents of runcam at the console, it runs just fine, and will run until killed or the system is restarted again. What is wrong with how I have this set up that it runs when I type the command out, but wont run from the script?

Thanks.

2
Contributors
3
Replies
4
Views
13 Years
Discussion Span
Last Post by Dominick
0

lsof | grep 'runcam'
it might be running already
kill -9 comes in handy in that case

0

Thats how I know its not running; thanks for the reply though.

Postscript: Im still trying to figure this one out, so if anyone has suggestions, Im all ears.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.