This widget could not be displayed.
1845517 Members
3767 Online
110244 Solutions
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
New Discussion
This widget could not be displayed.
This widget could not be displayed.

Re: command line length

 
SOLVED
Go to solution
Kris_5
Occasional Advisor

command line length

Hi Folks,

I am trying to submit a command through cron and the length of the command line is more than 260 charcters. So, the job is failing with incomplete command error(reads first ~260 charcters only of the total command). Can some help me on how to solve this kind of problem. I don't know how to make use of (\ and carriage return) in crontab command. Thanks in advance.

krish
3 REPLIES 3
Sanjay_6
Honored Contributor

Re: command line length

Hi,

Try

command starts here some more command parameters here command ends here

Hope this helps.

Regds
Uday_S_Ankolekar
Honored Contributor
Solution

Re: command line length

Hi,

Try running the same command in a script. Then edit crontab to run the script.



-USA..
Good Luck..
Roger Baptiste
Honored Contributor

Re: command line length

hi,

Instead of using the longish command sequence on the cron file entry, put the command line in a file(with execute permissions) and simple call that file in the crontab entry.

HTH
raj
Take it easy.