backslash in crontab

Antoine Jacoutot ajacoutot at lphp.org
Sat May 31 01:49:43 PDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi !

How can I have one big line in my crontab splitted in multiple lines ?
I tried the following:

0 2 * * * command A && \
command B && \
command C

But I get the following error message:

/tmp/crontab.48pe18LXs2: 10 lines, 1344 characters.
crontab: installing new crontab
"/tmp/crontab.48pe18LXs2":9: bad hour
crontab: errors in crontab file, can't install
Do you want to retry the same edit?

Note that if my crontab is written as:

0 2 * * * command A && command B && command C
... then it works with no problem.

Thanks.

- -- 
Antoine Jacoutot
ajacoutot at lphp.org
http://www.lphp.org
gpg key: http://www.lphp.org/ressources/ajacoutot.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE+2GyiY3Hnhkr+5cQRAvsLAJ4zZ9QqXyGcbe+pa8DxLISN/b1bSwCeIGyO
SkytZ2OhVdCJtrl4+8PJuRw=
=3Uxf
-----END PGP SIGNATURE-----



More information about the freebsd-questions mailing list