[Ilugc] Need help

  • From: knura9@xxxxxxxxx (Arun Khan)
  • Date: Thu, 16 May 2013 12:08:53 +0530

On Thu, May 16, 2013 at 8:23 AM, Mohan Sundaram <mohan.tux at gmail.com> wrote:

On Wed, May 15, 2013 at 8:08 PM, Saravanan Devasagayam
<saravanansagayam at gmail.com> wrote:
Dont work "crontap" job but thats work on terminal in ubuntu anybody help
please


Like others have said, more details will be needed to help you.
Nevertheless, the most common problem faced is what you have listed.
Users just plug in the command line as used in a terminal and the
command will not work. Terminals have shell with path to search which
cron does not have. Cron/Crontab needs the complete path of the
executable to be mentioned in the entry. should work then.


+1  Also, man 5 crontab has a plethora of working examples.  I don't
know if the OP has read that or not.

Also, I notice that OP is not willing to share the command line in
question that is *not* working for him in the crontab.

In the past, I have been bitten by the character '%' in the command
line.  It needs to be 'escaped.'  Also, cannot split the command line
into multiple lines with the char '\'

<quote>
The ``sixth'' field (the rest of the line) specifies the command to be
run.  The entire command por?
       tion of the line, up to a newline or % character, will be
executed by /bin/sh or by the shell speci?
       fied in the SHELL variable of the crontab file.  Percent-signs
(%) in the  command,  unless  escaped
       with  backslash (\), will be changed into newline characters,
and all data after the first % will be
       sent to the command as standard input. There is no way to split
a single command line onto  multiple
       lines, like the shell's trailing "\".

</quote>
-- 
Arun Khan
Sent from my non-iphone/non-android device
(???? ????/???? ???)

Other related posts: