Re: backslash in crontab
From: Antoine Jacoutot (ajacoutot_at_lphp.org)
Date: 05/31/03
- Previous message: keith_at_smmc.qld.edu.au: "Re: Help..can I use DUMP? my drive is dying - VINUM ?"
- In reply to: Matthew Seaman: "Re: backslash in crontab"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: Matthew Seaman <m.seaman@infracaninophile.co.uk> Date: Sat, 31 May 2003 12:58:10 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Saturday 31 May 2003 12:04, Matthew Seaman wrote:
> Yes -- the entry in the crontab file has to be all on one line, as
> you've discovered. If you absolutely have to reformat things, then
> generally the way to go is to create a shell script containing your
> complex command and run that out of cron instead:
>
> crontab entry:
>
> 0 2 * * * myscript
>
> % cat <<E_O_SCRIPT > myscript
> #!/bin/sh
>
> command A && \
> command B && \
> command C
> E_O_SCRIPT
Thanks :)
Antoine
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)
iD8DBQE+2IrFY3Hnhkr+5cQRAqx4AJ46FZYC+hc2P5CeiSiPQ3UkpXQfFgCffUwa
gICDT683Oz+1i3G6RajG3X8=
=oc4D
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
- Previous message: keith_at_smmc.qld.edu.au: "Re: Help..can I use DUMP? my drive is dying - VINUM ?"
- In reply to: Matthew Seaman: "Re: backslash in crontab"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|