|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 (permalink) |
|
Messages: n/a
Hébergeur: |
Hello,
There is a script I want to start everytime the computer reboots. I tried putting it in /etc/init.d/rc but it prevents the machine from entering runlevel3. I tried placing <@reboot "absolute path to script"> in /etc/crontab and the script didn't start. I also tried crontab -e as root which had the same effect. The script runs in an endless loop checking for files. Does anyone have any ideas? Thanks in advance |
|
|
|
#2 (permalink) |
|
Messages: n/a
Hébergeur: |
mostro713@gmail.com wrote the following on 8/22/2006 4:20 PM:
> There is a script I want to start everytime the computer reboots. I > tried putting it in /etc/init.d/rc but it prevents the machine from > entering runlevel3. I tried placing <@reboot "absolute path to script"> > in /etc/crontab and the script didn't start. I also tried crontab -e as > root which had the same effect. The script runs in an endless loop > checking for files. Does anyone have any ideas? On my linux box I would try inittab with action __once__ Check "man inttab" more details on how to use it.. hope this s --divakar |
|
|
|
#3 (permalink) |
|
Messages: n/a
Hébergeur: |
mostro713@gmail.com wrote:
> Hello, > > There is a script I want to start everytime the computer reboots. I > tried putting it in /etc/init.d/rc but it prevents the machine from > entering runlevel3. I tried placing <@reboot "absolute path to script"> > in /etc/crontab and the script didn't start. I also tried crontab -e as > root which had the same effect. The script runs in an endless loop > checking for files. Does anyone have any ideas? > > Thanks in advance Did you put a "&" at the end of the command in /etc/init.d/rc ? If not it may prevent subsequent commands from executing. Allistar. |
|
|
|
#4 (permalink) |
|
Messages: n/a
Hébergeur: |
Allistar wrote: > mostro713@gmail.com wrote: > > > Hello, > > > > There is a script I want to start everytime the computer reboots. I > > tried putting it in /etc/init.d/rc but it prevents the machine from > > entering runlevel3. I tried placing <@reboot "absolute path to script"> > > in /etc/crontab and the script didn't start. I also tried crontab -e as > > root which had the same effect. The script runs in an endless loop > > checking for files. Does anyone have any ideas? > > > > Thanks in advance > > Did you put a "&" at the end of the command in /etc/init.d/rc ? If not it > may prevent subsequent commands from executing. > > Allistar. Ah, I will try running it as a background process and see what happens. Thanks |
|
|
|
#5 (permalink) |
|
Messages: n/a
Hébergeur: |
mostro713@gmail.com wrote: > Allistar wrote: > > mostro713@gmail.com wrote: > > > > > Hello, > > > > > > There is a script I want to start everytime the computer reboots. I > > > tried putting it in /etc/init.d/rc but it prevents the machine from > > > entering runlevel3. I tried placing <@reboot "absolute path to script"> > > > in /etc/crontab and the script didn't start. I also tried crontab -e as > > > root which had the same effect. The script runs in an endless loop > > > checking for files. Does anyone have any ideas? > > > > > > Thanks in advance > > > > Did you put a "&" at the end of the command in /etc/init.d/rc ? If not it > > may prevent subsequent commands from executing. > > > > Allistar. > > > Ah, I will try running it as a background process and see what happens. > That did the trick! & Thanks > > Thanks |
|
![]() |
| Outils de la discussion | |
|
|