|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
|
/bin/sh vs. /bin/bash
another quick question when ever I schedule a job with at I get warning all commands will be executed in /bin/sh is there any way to set the default shell for scheduled items. I'd rather they be executed in /bin/bash
|
|
|
|
|
|
#2 |
|
Premium Member
Join Date: Jun 1999
Posts: 9,231
|
Guess the first question is what are u using to schedule jobs with?
What do u mean by all jobs scheduled in sh? Are you using cron? or anacron? I dont know if this is what you mean .. but if you look at your anacrontab (/etc/anacrontab ) or crontab (/etc/crontab) .. as the case may be: you might see schedules such as: 0 */2 * * * root /root/bin/job1.sh etc etc... well the job1.sh is not an sh-shell script .. it is simply a scheduled script file. look at job1.sh and you can make sure that it begins with: #!/bin/bash |
|
|
|
|
|
#3 |
|
Member (9 bit)
|
sheduling with at
the first line of the script is #!/bin/bash |
|
|
|
|
|
#4 |
|
Premium Member
Join Date: Jun 1999
Posts: 9,231
|
then u are using bash
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|