1752794 Members
6685 Online
108789 Solutions
New Discussion юеВ

cron job

 
SOLVED
Go to solution
Chakravarthi
Trusted Contributor

cron job

How to add more than 72 charecters in a single line in crontab??
5 REPLIES 5
Georg Tresselt
Honored Contributor

Re: cron job

Put them in a script and call that one in crontab.
http://www.tresselt.eu
Chris Xu
Trusted Contributor

Re: cron job

I think you can put more than 72 characters in a single line. I could add a lot more in mine. However, that would look a little messy and does not make sense. So it is best to put them in a shell script when there are lots of stuff to add to your crontab. And then run the script in the cronntab like it is a command. Remember to make your script executable by using "chmod" otherwise it won't run.

Chris
Ivajlo Yanakiev
Respected Contributor
Solution

Re: cron job

Did you try it ?
I think that it can be done
Michael Schulte zur Sur
Honored Contributor

Re: cron job

Hi,

it looks to me like you do not have the flag set in your terminal emulation for autowrap, which enables you to write more than 80 chars.

greetings,

Michael
Deepak_22
New Member

Re: cron job

there's a way in linux to make a task run in intervels

0-59/5 * * * * /path/script >> dev/null 2 >&1

will run the script in 5 minutes interval
as opposed to 0,5,10,15,.....55 for the minutes interval