LinuxQuestions.org
Help answer threads with 0 replies.
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 11-02-2004, 12:10 AM   #1
jjrowan
Member
 
Registered: Sep 2001
Location: New Jersey
Distribution: Red Hat, SuSE, CentOS and Ubuntu
Posts: 50

Rep: Reputation: 16
Cron and anaconda-ks.cfg


Can someone shed some light on something for me?

I have a Red Hat 9.0 server I had built here on hot swap disks then
installed on my client's network in his server. The only difference is the
network address. Originally it was configured using IP address
192.168.2.9, now the Ethernet is defined as 192.168.1.7. I don't know how
or if it's pertinent.

I tried to have a cron job copy some files. When the job kicks off it
errors out immediately. Here's the information the root account receives
via e-mail any time I try to run the job:

Subject: Cron <root@forester> * /root/getcorvettersync.sh
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>

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


Here's the job I'm trying to run:

cat getcorvettersync.sh

#!/bin/bash

RSYNC=/usr/bin/rsync
SSH=/usr/bin/ssh
KEY=/root/foresterkey/forester-rsync-key
RUSER=root
RHOST=192.168.2.8
RPATH=/home/
LPATH=/home/
$RSYNC -tupr -e "$SSH -i $KEY" --verbose --progress --delete $RUSER@$RHOST
$RPATH $LPATH
 
Old 11-02-2004, 09:45 AM   #2
jjrowan
Member
 
Registered: Sep 2001
Location: New Jersey
Distribution: Red Hat, SuSE, CentOS and Ubuntu
Posts: 50

Original Poster
Rep: Reputation: 16
Only happens as root

Well, I'm still searching for a solution. Since the original post I tried logging in as a non-privileged user and submitted a cron job to that user's crontab. There was NO error produced, so it seems like this anaconda-ks.cfg thing is specific to the root account.

Okay I said, I'll just generate ssh keys as the non privileged user and copy files that way, WRONG. Although I could generate the keys and modify my script my account did not have write privileges to /home so I could not create the user directories and files under /home. I made the non-privileged account a member of the root group and chmod -R 774 /home but still no joy. I finally chown -R non-privilegeduser.root /home and I'm able to create directories / files under /home. Problem is that the users now don't have access to their data on the backup server.

I'd really like to have the anaconda-ks.cfg error corrected so root's crontab can execute the rsync job to back up the files.

I have seen two posts on Google with the same exact problem but no resolution.

Help please!
 
Old 11-17-2004, 02:28 PM   #3
tilaturtle
LQ Newbie
 
Registered: Nov 2004
Location: Emeryville, CA
Posts: 1

Rep: Reputation: 0
I encountered the same problem today and came across your post while looking for answers. I found this solution on the The Milwaukee Linux User Group mailing list.

http://www.milwaukeelug.org/pipermai...er/001969.html

Anyway I've seen some of this funky stuff happening
when you have too many '*'s in your crontab. If you have

00 12 * * * /command

it will work fine. If you have

00 12 * * * * /command
It will try to execute everything in your home directory.
And I bet that anaconda-ks.cfg is your first file and it
crapped out on that one.

So make sure you don't have too many '*'s"

Hope this helps!
 
Old 11-17-2004, 03:08 PM   #4
jjrowan
Member
 
Registered: Sep 2001
Location: New Jersey
Distribution: Red Hat, SuSE, CentOS and Ubuntu
Posts: 50

Original Poster
Rep: Reputation: 16
Thanks for your follow-up.

Mea culpa, mea culpa.

I had discovered the extra asterisk but failed to post my findings here. I had also posted the problemon alt.linux.redhat and HAD remembered to post my solution there.

Too many news groups, too little time.

Thanks again.
 
  


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
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 08:09 AM
how to get back anaconda-ks.cfg jam_newbiew Linux - General 2 02-02-2005 03:11 AM
whether my ks.cfg is wrong? iversion Linux - Newbie 1 08-02-2004 01:42 PM
xf86 cfg ?? wrat Debian 7 05-11-2004 07:16 AM
/bin/sh: anaconda-ks.cfg: command not found Buttercups Linux - General 1 08-07-2003 08:47 PM

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

All times are GMT -5. The time now is 08:55 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