Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 May 2003 10:49:34 +0200
From:      Antoine Jacoutot <ajacoutot@lphp.org>
To:        freebsd-questions@freebsd.org
Subject:   backslash in crontab
Message-ID:  <200305311049.38120.ajacoutot@lphp.org>

next in thread | raw e-mail | index | archive | help

-----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@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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305311049.38120.ajacoutot>