Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 16th October 2012, 23:20
CSARLAB CSARLAB is offline
HowtoForge Supporter
 
Join Date: Oct 2012
Posts: 15
Thanks: 1
Thanked 3 Times in 3 Posts
Default

which distribution you using?
every linux distribution have different commands
Reply With Quote
The Following User Says Thank You to CSARLAB For This Useful Post:
frosty (17th October 2012)
Sponsored Links
  #12  
Old 17th October 2012, 02:41
frosty frosty is offline
Junior Member
 
Join Date: Oct 2012
Location: United Kingdom
Posts: 7
Thanks: 7
Thanked 0 Times in 0 Posts
Default Which version

What Linux distro are we talking about? If it's about my desktop, then I am on Ubuntu 10.04. Or are you asking about Linux system of my hosting where I am trying to work with my shell scripts?

Cheers,

Alex
Reply With Quote
  #13  
Old 17th October 2012, 07:27
CSARLAB CSARLAB is offline
HowtoForge Supporter
 
Join Date: Oct 2012
Posts: 15
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Your hosting where you trying this shell script mate that i am asking
Reply With Quote
  #14  
Old 19th April 2013, 18:47
aFoP aFoP is offline
Junior Member
 
Join Date: Jun 2012
Location: Budapest
Posts: 7
Thanks: 1
Thanked 1 Time in 1 Post
Default

Hi,
I would not specify /bin/sh in the cron job itself ...

What about
Quote:
57 * * * * /opt/dell/srvadmin/bin/backup/democronjobs/my_shell_script
If in the script itself you specify #!/bin/bash or #!/bin/sh it should run (as root) without problems.
Or did you try to add below 2 lines into the crontab before the above line?

Quote:
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin

Last edited by aFoP; 19th April 2013 at 19:32.
Reply With Quote
The Following User Says Thank You to aFoP For This Useful Post:
frosty (19th April 2013)
  #15  
Old 19th April 2013, 20:29
frosty frosty is offline
Junior Member
 
Join Date: Oct 2012
Location: United Kingdom
Posts: 7
Thanks: 7
Thanked 0 Times in 0 Posts
 
Default Thank you

Thank you for your answer, aFoP and to the rest who's help me in this thread. Although I've already moved from that project, I still do appreciate your reply.

To mods: Please feel free to close this thread now.

Have a nice weekend eveyone

Cheers,

Alex

Last edited by frosty; 19th April 2013 at 20:34.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron issue in Debian 6 Nolan Installation/Configuration 6 18th April 2011 16:36
ISPConfig install issues... flyingaggie Installation/Configuration 2 18th July 2008 10:46
add web site serr57 Installation/Configuration 18 13th April 2008 11:40
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 03:40
setup fails on debian 3.1 dtrumbower Installation/Configuration 7 7th March 2006 13:42


All times are GMT +2. The time now is 23:35.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.