Go Back   PCMech Forums > Linux Support > Linux OS and Software Assistance

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 10-11-2001, 12:26 AM   #1
Member (9 bit)
 
Join Date: Jan 2001
Location: Kalamazoo, MI
Posts: 314
Send a message via ICQ to sdkramer Send a message via AIM to sdkramer Send a message via Yahoo to sdkramer
/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
sdkramer is offline   Reply With Quote
Old 10-12-2001, 05:40 AM   #2
Premium Member
 
Statica's Avatar
 
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
Statica is offline   Reply With Quote
Old 10-12-2001, 07:39 AM   #3
Member (9 bit)
 
Join Date: Jan 2001
Location: Kalamazoo, MI
Posts: 314
Send a message via ICQ to sdkramer Send a message via AIM to sdkramer Send a message via Yahoo to sdkramer
sheduling with at

the first line of the script is #!/bin/bash
sdkramer is offline   Reply With Quote
Old 10-12-2001, 08:22 AM   #4
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
then u are using bash
Statica is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:00 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2