backslash in crontab

From: Antoine Jacoutot (ajacoutot_at_lphp.org)
Date: 05/31/03

  • Next message: Jer: "VMware2 switch to full screen crash"
    To: freebsd-questions@freebsd.org
    Date: Sat, 31 May 2003 10:49:34 +0200
    
    

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

    _______________________________________________
    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"


  • Next message: Jer: "VMware2 switch to full screen crash"

    Relevant Pages

    • Re: Running DBI, ODBC in the crontab
      ... Run the following lines in both the command line and crontab: ... Any of the paths that are missing in cron ... This communication is issued by UBS AG or an affiliate by the ...
      (perl.dbi.users)
    • Re: GPG in crontab causes blank messages
      ... When I run my crontab command manually in terminal, ... But since the output of the script contains a big list of files, ... If I remove the GPG portion of the command, ...
      (comp.sys.mac.apps)
    • Re: crontab issue
      ... your environment ... ... Simon is absolutely right about the script ... ... crontab file ugly, just because you can? ... solved by making the command a separate script. ...
      (AIX-L)
    • Re: crontab related .. again
      ... >>> The above command works fine with the following ... >>> This latter script work in command line. ... > Yes crontab allow */1 specificatin. ... > How to know the cron's working directory how to make the current ...
      (comp.unix.shell)
    • Re: crontab
      ... No, im not running it through command line, I am running in the same way as ... Doing so will allow you to edit that users crontab file. ... > Use vi commands to add the specific crontab entry. ... > If the reader of the message is not the intended recipient, ...
      (RedHat)