Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a shell script that runs fine manually, but wont run if I try to schedule using cron or Kcron. I would like to have it run every day at 5.30pm.
by command line it runs using
$sh bkup.sh
using cron as su I have
30 17 * * 1,2,3,4,5 /bin/sh /data/archive.sh
I have read through several posts on this and I have tried not renaming the file so it doesn't have the .sh extension, and I have checked that the permission are executable.
We are using redhat enterprise edition
Strangely I have another task scheduled that clears the contents of a folder once a week. This one works, but not every week!
0 23 * * 7 /bin/rm /data/temp/
So question is am I setting it up wrong and if not why doesn't it work? I'm kinda new to linux, so please let me know if there is a better way to schedule this task
I have a shell script that runs fine manually, but wont run if I try to schedule using cron or Kcron. I would like to have it run every day at 5.30pm.
by command line it runs using
$sh bkup.sh
using cron as su I have
30 17 * * 1,2,3,4,5 /bin/sh /data/archive.sh
I have read through several posts on this and I have tried not renaming the file so it doesn't have the .sh extension, and I have checked that the permission are executable.
We are using redhat enterprise edition
Strangely I have another task scheduled that clears the contents of a folder once a week. This one works, but not every week!
0 23 * * 7 /bin/rm /data/temp/
So question is am I setting it up wrong and if not why doesn't it work? I'm kinda new to linux, so please let me know if there is a better way to schedule this task
Hey someone had that problem here on their solaris box, I fixed it by restarting the cron daemon. I dont know if this helps but you could give it a try.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.