PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > Crontab @reboot???
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.unix.shell Using and programming the Unix shell.

Crontab @reboot???

Réponse
 
LinkBack Outils de la discussion
Vieux 22/08/2006, 11h50   #1 (permalink)
mostro713@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Crontab @reboot???

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

  Réponse avec citation
Vieux 22/08/2006, 12h14   #2 (permalink)
Divakar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Crontab @reboot???

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
  Réponse avec citation
Vieux 22/08/2006, 12h36   #3 (permalink)
Allistar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Crontab @reboot???

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.
  Réponse avec citation
Vieux 22/08/2006, 13h53   #4 (permalink)
mostro713@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Crontab @reboot???


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

  Réponse avec citation
Vieux 23/08/2006, 00h02   #5 (permalink)
mostro713@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Crontab @reboot???


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


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h24.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09298 seconds with 13 queries