[Résolu][Qst] - Pb de droits sur un script SH

Utilise crontab

$ crontab -h crontab : option invalide -- 'h' crontab: usage error: unrecognized option usage: crontab [-u user] file crontab [ -u user ] [ -i ] { -e | -l | -r } (default operation is replace, per 1003.2) -e (edit user's crontab) -l (list user's crontab) -r (delete user's crontab) -i (prompt before deleting user's crontab)

D’apres le manuel :

Pour l’utilisateur courant

En root pour root …

Et passer :

En :

quote="Yannou90"
Pour l’utilisateur courant

En root pour root …
(…)[/quote]
C’est visiblement en root que je backup :

pi@Rasppy ~ $ crontab -e no crontab for pi - using an empty one No modification made

Et via root, j’ai modifié ainsi donc :

[code]

Edit this file to introduce tasks to be run by cron.

Each task to run has to be defined through a single line

indicating with different fields when the task will be run

and what command to run for the task

To define the time you can provide concrete values for

minute (m), hour (h), day of month (dom), month (mon),

and day of week (dow) or use ‘*’ in these fields (for ‘any’).#

Notice that tasks will be started based on the cron’s system

daemon’s notion of time and timezones.

Output of the crontab jobs (including errors) is sent through

email to the user the crontab file belongs to (unless redirected).

For example, you can run a backup of all your user accounts

at 5 a.m every week with:

0 5 * * 1 tar -zcf /var/backups/home.tgz /home/

For more information see the manual pages of crontab(5) and cron(8)

m h dom mon dow command

30 2 * * 1 /home/pi/runSDCardBackup.sh[/code]

Cela s’activera automatiquement, aucun besoin de relancer un truc ?

Non rien de plus :smiley:

Bien, alors je suis sauvé :wink:

Merci infiniment… Je passe en résolu… :slightly_smiling:

Pas de soucis et n’hésites pas :wink: