LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-24-2003, 12:17 PM   #1
dancemutha
LQ Newbie
 
Registered: Feb 2003
Posts: 10

Rep: Reputation: 0
Angry Screwed Up Cron and Disk Size Problems


The other day I wrote a shell script that uses ncftpget to pull down a backup of our live server to a development server in house. I wanted to add this script to my crontab so I simply copied it to my /etc/cron.daily directory and changed the crontab file to execute daily scripts everyday at 11pm. Since I made this change, 2 minutes after every hour I get mail in /var/spool/mail/root from cron stating that /bin/bash is an unrecognized shell command. In my /etc/cron.hourly directory there is nothing. The crontab that is installed indicates that nothing should be executing at 2 minutes after ther hour. Could someone help me out with this problem? Any advice as to how to stop this would be greatly appreciated.

I have a second problem as well. My backup script is executing fine, but wont download the complete file. Our server admin creates a tarball of our server everynight that I can download with my backup script. It executes fine via cron and connects with no problem, but only downloads 300 mb of the backup file that is about 1 gb. When I use the -d option with ncftpget I see the error "Local write failed: No space left on device". How could this be. I'm downloading to my /home directory which show the below capacity from df:

Filesystem Size Used Avail Use% Mounted on
/dev/hda3 9.5G 1.1G 7.9G 12% /home

What's going on here?

Sorry for the long post, but I need to get these problems solved. I look forward to hearing anyones advice.
 
Old 02-24-2003, 02:31 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
As for cron jobs...

use
Code:
crontab -e <username>
to edit them, even though I hate vi :}

as for the bash ... maybe you didn't make your script
chmod +x for the user that the cron job runs under?

As for the space ...

Maybe you have disk-quotas enabled, and are
running out of your "personal allowance"?

Cheers,
Tink
 
Old 02-24-2003, 02:50 PM   #3
dancemutha
LQ Newbie
 
Registered: Feb 2003
Posts: 10

Original Poster
Rep: Reputation: 0
How do I check to see if i have disk-quotas enabled? The cron problem isn't my script. It is something occuring in the /etc/cron.hourly directory, even though it's empty. My script works fine with the exception of the disk size problem. I need to know how to fix these 2 different problems. I don't think they are related at all.
 
Old 02-24-2003, 03:14 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Code:
man crontab
It is wrong to assume that only
stuff you put into cron.hourly
is going to execute every hour.

Use crontab, and familiarize yourself
with its syntax. The directory structure
is just a thing of convenience but doesn't
save you from trying to understand what
cron actually does.

Telling us your distro might help in getting
more to the point answers, by the way :}

Cheers,
Tink
 
Old 02-24-2003, 03:20 PM   #5
dancemutha
LQ Newbie
 
Registered: Feb 2003
Posts: 10

Original Poster
Rep: Reputation: 0
I'm using Red Hat 7.3...sorry for not mentioning that previously.
 
  


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
cron and sendmail are eating my hard disk longtex Linux - Software 3 10-05-2005 02:34 PM
Why should you give the size of the swap disk as twice the size of RAM vmniza Linux - Newbie 3 09-17-2004 03:13 AM
crazy root disk screwed me over? wwwc21 *BSD 2 08-02-2003 06:56 PM
Large disk size Shaddell Linux - General 1 01-07-2003 10:16 PM
I SCREWED UP MY BOOT DISK! Blootoon Linux - General 3 02-27-2001 06:33 PM


All times are GMT -5. The time now is 08:49 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration