[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash or sed script



Frédéric LEGER <fleger@tess2i.fr> wrote:
| Bonjour,
| 
| Je ne comprends pas bien le concept, pourquoi ne pas faire tourner cela sous root via une 
| tâche cron classique exécuté au reboot ?
| 
| mess-mate a écrit :
| 
| >Jacques L'helgoualc'h <lhh+no_spam@free.fr> wrote:
| >| mess-mate a écrit, mercredi 8 juin 2005, à 13:51 :
| >| [...]
| >| > La crontab exécute à une certaine heure, non ?
| >| > Donc pas utilisable pour mon cas. | | Avec anacron, alors ?
| >| | > En outre pour sauvegarder des rép. comm par ex. /etc il faut les
| >| > permissions root.
| >| > Comment faire ?
| >| | Sous root, ou avec sudo.
| >| -- D'accord je vais voire la man de anacron.
| >Mais un sudo ne marche pas DANS un script ?
| >(pas pour exécuter le script )
| >Pour être plus clair: j'ai donc plusieurs rép. à sauvegarder de mon
| >HOME plus au moins le /etc qui lui est sous root.
Oui, c'est vrai, j'y ai pas pensé.
Mais comment fait-on pour que le cron ne l'exécute q'au boot ?


mess-mate                               
--
Q:	How many elephants can you fit in a VW Bug?
A:	Four.  Two in the front, two in the back.

Q:	How can you tell if an elephant is in your refrigerator?
A:	There's a footprint in the mayo.

Q:	How can you tell if two elephants are in your refrigerator?
A:	There's two footprints in the mayo.

Q:	How can you tell if three elephants are in your refrigerator?
A:	The door won't shut.

Q:	How can you tell if four elephants are in your refrigerator?
A:	There's a VW Bug in your driveway.



Reply to: