Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 22/07/2015, à 17:04

bomonde1972

Pb lors du premier enregistrement de la crontab

bonjour à vous tous,

Je viens d'installer ubuntu aujourd'hui et lorsque je lance crontab -e j'ai l'affichage ci -dessous qui apparaît.

# 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

                                                           [ ligne 1/23 (4%), col. 1/55 (1%), car. 0/888 (0%) ]
^G Aide                     ^O Écrire                   ^R Lire fich.               ^Y Page préc.               ^K Couper                   ^C Pos. cur.
^X Quitter                  ^J Justifier                ^W Chercher                 ^V Page suiv.               ^U Coller                   ^T Orthograp.


Ma question est la suivante : comment quitter cette fenetre je n'y arrive pas, et par le futur comment enregistrer mes lignes de crontab car :wq! ne fonctionne pas

Merci d'avance de vos retours.

Bonne journée à tous

Hors ligne

#2 Le 22/07/2015, à 21:19

Ferod

Re : Pb lors du premier enregistrement de la crontab

Salut
En fait tu utilises l'éditeur nano. C'est les deux dernières qui peuvent te mettre sur la voie. Il faut taper ctrl + X pour quitter, Ctr+O pour écrire, Ctrl + Y pour la page précédente, etc...

Sébastien


"When I was in the military, they gave me a medal for killing
two men, and a descharge for loving one !" Leonard Matlovich

Hors ligne

#3 Le 22/07/2015, à 22:29

bomonde1972

Re : Pb lors du premier enregistrement de la crontab

Merci beaucoup de ta réponse Ferod, y a t'il moyen de passer sur VI pour modifier la cron ? j'arrive à créer des petits shell en vi mais la crontab impossible ..

Hors ligne

#4 Le 23/07/2015, à 09:04

credenhill

Re : Pb lors du premier enregistrement de la crontab

hello
pour utiliser l'éditeur de son choix avec crontab -e définir

export EDITOR=/usr/bin/vi

Hors ligne

#5 Le 29/07/2015, à 14:04

bomonde1972

Re : Pb lors du premier enregistrement de la crontab

Merci beaucoup credenhill c'est ok maintenant.

A plus

Hors ligne