LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-07-2004, 02:49 AM   #1
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
cron bug?


Ok... this is strange.

Im running RHAS3 on this box... I just added a cron job to roots crontab with crontab -e and I am getting

/bin/sh: line 1: anaconda-ks.cfg: command not found

I run this script as is off the command line manually all the time with no problems at all. Its a very simple rsync script.

#!/bin/bash
rsync --verbose --progress --stats --compress --rsh=ssh --recursive --times --perms --links --delete /vhosts/whoever/ xx.xx.xx.xxx:/vhosts/whoever/

I tried putting the full command in the crontab as well instead of using the script and that doesn't work either. same error.

googling took me to red hat and they were zero help. Plenty of posts but no answers.

anyone out there have this problem? and better yet a solution. I'm hoping it's something simple but it stinks like a bug.

Thanks all.

linux_terror
 
Old 09-07-2004, 03:43 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
can you please post the crontab entry too.
 
Old 09-07-2004, 10:15 AM   #3
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Original Poster
Rep: Reputation: 30
tried it this way....

5 * * * * * /root/scripts/rsync.sh

and this way

5 * * * * * rsync --verbose --progress --stats --compress --rsh=ssh --recursive --times --perms --links --delete /vhosts/whoever/ xx.xx.xx.xxx:/vhosts/whoever/ 2>&1 > /var/log/rsync.log

and this way

5 * * * * * /usr/bin/rsync --verbose --progress --stats --compress --rsh=ssh --recursive --times --perms --links --delete /vhosts/whoever/ xx.xx.xx.xxx:/vhosts/whoever/

and this way

5 * * * * * /usr/bin/rsync --verbose --progress --stats --compress --rsh=/usr/bin/ssh --recursive --times --perms --links --delete /vhosts/whoever/ xx.xx.xx.xxx:/vhosts/whoever/

got the same results every time....an email containing this -->

/bin/sh: line 1: anaconda-ks.cfg: command not found

Tried everything I could think of, also tried a bunch of different time entries and did it with loggging and w/out. Absolute paths and w/out. And the script is executable(just trying to put any useful info here that I can think of) .

If you need more info just tell me.
Thanks again all.

linux_terror
 
Old 09-07-2004, 10:48 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
Quote:
5 * * * * * /root/scripts/rsync.sh
Not sure if the above is just a typo ...

#mm hh dd mm w command
Perhaps you have an extra asterisk - should actually be 5 followed by 4 asterisks
5 * * * * /root/scripts/rsync.sh
 
Old 09-07-2004, 11:30 AM   #5
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Original Poster
Rep: Reputation: 30
sure enough you are correct. It wasn't a type-o, as it seems i just can't count LOL.....well, glad it was something simple, kinda figured it must have just been some stupid error on my part as it usually is.
I really appreciate the prompt response ppuru Im in your debt.

linux_terror
 
Old 09-07-2004, 11:35 AM   #6
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Original Poster
Rep: Reputation: 30
Just dropped you a nice affero rating too ppuru...thanks again.

linux_terror
 
Old 09-07-2004, 11:37 AM   #7
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
Hey thanks ... I'll take that extra star
 
Old 09-07-2004, 11:38 AM   #8
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Original Poster
Rep: Reputation: 30
 
  


Reply



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
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 08:09 AM
Free86 bug or nVidia bug?? ProtoformX Linux - Software 2 05-12-2004 02:38 AM
[cron][mdk9.1]cron deamon seems to ignore some task... yannrichet Linux - Newbie 5 06-26-2003 09:57 AM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 02:30 PM
cron+vim bug treebeard Slackware 3 09-30-2002 10:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration