[gull] Truc et astuces: crontab -e non interactif
Félix Hauri
felix at f-hauri.ch
Sun Aug 8 13:41:24 CEST 2010
Salut Pierre,
On Sun, Aug 08, 2010 at 12:56:19PM +0200, Pierre Maitre wrote:
> Le 6 août 2010 13:28, Félix Hauri <felix at f-hauri.ch> a écrit :
> > Cela faisait longtemps...
> ... il était temps!
Noté;)
> C'est quoi le 1a (après echo)?
Une commande ``sed'' (voire ``man ed'' ou ``info ed'').
Je demande d'insérer (a)près la (1)ème ligne.
> > $ crontab -l
> > no crontab for guest
> >
> > $ echo "1a* * * * * $HOME/script" |
> > env EDITOR='sh -c "sleep 1;sed -f - -i \$@" --' crontab -e
--
Félix.
More information about the gull
mailing list