LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 01-19-2005, 04:54 PM   #1
jillu
LQ Newbie
 
Registered: Sep 2004
Location: Oregon
Distribution: RedHat, Mandrake, and Debian
Posts: 11

Rep: Reputation: 0
cron jobs work fine when invoked from webmin but fail on schedule


All~

We're using RH Enterprise and having a problem with our cron jobs.
If you run the cron job manually from webmin, it works just fine...but when it tries to run on the selected schedule, they return 'can't find file' or 'no such directory' errors....

Both jobs in question contain the ncpmount command to connect and mount to a Novell (6.5) volume on the server.

I'm hoping that someone might have a clue....

Thanks!
Jill
 
Old 01-19-2005, 08:29 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,507

Rep: Reputation: 176Reputation: 176
"If you run the cron job manually from webmin, it works just fine...but when it tries to run on the selected schedule, they return 'can't find file' or 'no such directory' errors....

Both jobs in question contain the ncpmount command to connect and mount to a Novell (6.5) volume on the server."

It sounds like the ncpmount command is failing when run as cron. cron has a different PATH than other users, often an empty PATH. Try giving the full path name for the ncpmount command. If that doesn't work please post the cron job.


------------------------
Steve Stites
 
Old 01-20-2005, 01:17 PM   #3
ciscohead
Member
 
Registered: Mar 2003
Distribution: redhad 7.3
Posts: 42

Rep: Reputation: 15
oh yeah, duh. This helped me.
 
Old 01-20-2005, 01:34 PM   #4
jillu
LQ Newbie
 
Registered: Sep 2004
Location: Oregon
Distribution: RedHat, Mandrake, and Debian
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for helping! I appreciate the time you took to respond to my plea for help. About an hour after I had posted, I somehow managed to 'stumble' onto the fix and it was, as you suggested, to put the whole path into the job script.

Thanks again!
Jill
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
X apps fail when run from cron jobs ericcarlson Linux - Software 4 05-31-2009 05:26 PM
scp does not work with cron jobs yogendrarawat Linux - Newbie 2 09-15-2005 02:34 AM
How to schedule *interactive* task with at or cron fast_rizwaan Linux - Newbie 4 09-09-2005 06:26 PM
Trying to schedule ftp login using cron compuser Linux - General 2 06-10-2005 04:22 AM
script runs fine from a command line, but doesn't work from cron? kleptophobiac Linux - Software 5 05-03-2004 04:14 PM


All times are GMT -5. The time now is 04:12 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration