![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Crontab error Cannot execute binary file. | raccsdl | Shell Programming and Scripting | 5 | 11-13-2007 06:22 AM |
| how to execute sh script in bash shell via crontab | jigarlakhani | UNIX for Dummies Questions & Answers | 1 | 06-23-2007 09:50 PM |
| Need to execute a complete url from crontab | nissar | Shell Programming and Scripting | 2 | 08-11-2006 06:18 AM |
| compiled binary file gives "cannot execute binary file" | scgupta | SUN Solaris | 0 | 07-13-2006 02:59 AM |
| crontab ..sqlplus cannot execute | zikronz | High Level Programming | 1 | 04-29-2005 11:03 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 |
|
||||
|
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:
|
![]() |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|