![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Crontab error Cannot execute binary file. | raccsdl | Shell Programming and Scripting | 5 | 11-13-2007 02:22 AM |
| how to execute sh script in bash shell via crontab | jigarlakhani | UNIX for Dummies Questions & Answers | 1 | 06-23-2007 05:50 PM |
| Need to execute a complete url from crontab | nissar | Shell Programming and Scripting | 2 | 08-11-2006 02:18 AM |
| compiled binary file gives "cannot execute binary file" | scgupta | SUN Solaris | 0 | 07-12-2006 10:59 PM |
| crontab ..sqlplus cannot execute | zikronz | High Level Programming | 1 | 04-29-2005 07:03 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Can crontab execute binary files?
Hello!
I have an entry on my crontab. 10 00 * * * /bscsprod/bscs/prod/523/bin/tehcron.sh $ /bscsprod/bscs/prod/523/bin/vi tehcron.sh nohup teh -t -f > /dev/null & ~ ~ ~ ~ ~ ~ ~ ~ "tehcron.sh" 13 lines, 365 characters but executing the script from the commandline, it works. $ /bscsprod/bscs/prod/523/bin/tehcron.sh $ /bscsprod/bscs/prod/523/bin:INFC $ ps -ef|grep teh bscsprod 4983 1 6 20:15:44 ttyp3 0:00 teh -t -f |
| Forum Sponsor | ||
|
|
|
|||
|
Try adding the standard #! line to the top of your script, as well as these modifications:
Code:
#!/bin/sh nohup teh -t -f > /dev/null < /dev/null 2> /dev/null & disown |
|
|||
|
Quote:
|