Im having trouble getting a command to run when the computer has booted. Im using the rc.local file to try and do this. The 3 lines i have added to the file are below:
kismet_server > /root/logfile.txt &
python /scripts/kismetstatus.py &
Basically i want the kismet_server application to run at startup and any output it produces to be sent to a text file at /root/logfile.txt. This program runs indefinitely. After that has started the kismetstatus.py script runs which is used to check the file etc..
The problem is strange because the logfile.txt is created but nothing is written to it. If i enter the commands manually when the computer is on it all works perfectly fine. It just dosn't seem to work when attempting to start it automatically at boot.
I have tried adding these lines to both /etc/rc.local and /etc/init.d/rc.local and both produce the same results.
Is there any reason this may be happening? or an alternative way i can make a program start at boot time.
Thankyou in advance for your help.