CROND - Command not found

2003-11-14 Thread kamikazed
The problem you are seeing here is not that the cron
daemon can't find rsync.  Rather, the problem is that
the remote shell invoked by the rsync command cannot
find the rsync executable on the remote host.  You can
solve this by adding the following option:

--rsync-path=PATH

typically PATH is /usr/local/bin/rsync, but can vary.



__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: CROND - Command not found

2003-06-18 Thread Bill Moran
Please keep the mailing list in the list of CCs.

Schalk Erasmus wrote:
Thanks. I'll check tomorrow if it worked. But it should. :)

By the way, I would like to know, if it is possible to run "radwho |wc -l"
every 6 hours and e-mail me the result on my radius server.
I can't imagine why not.

I've got the following entry in Crontab:



-Original Message-
From: Bill Moran [mailto:[EMAIL PROTECTED]
Sent: 18 June 2003 02:44 PM
To: Schalk Erasmus
Cc: [EMAIL PROTECTED]
Subject: Re: CROND - Command not found
Schalk Erasmus wrote:

Hi,

I've got a Script that is suppose to run every day:

The script works, when I login as root and run it manually!

# /etc/crontab - root's crontab for FreeBSD
#
# $FreeBSD: src/etc/crontab,v 1.21.2.3 2000/12/08
#
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#
#minute hourmdaymonth   wdaywho command
#
30  7   *   *   *   root/MIRRORS/mirror.sh
BUT, it can't find the command: rsync

-Original Message-
From: Cron Daemon
Sent: 18 June 2003 07:30 AM
To: root
Subject: Cron  /MIRRORS/mirror.sh
Mirroring Exim Site...
rsync: not found
Mirroring Apache Site...
rsync: not found


In the mirror.sh script, use the full path to rsync:
i.e. instead of 'rsync /from/here /to/here'
do '/usr/local/sbin/rsync /from/here /to/here'


--
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: CROND - Command not found

2003-06-18 Thread Bill Moran
Schalk Erasmus wrote:
Hi,

I've got a Script that is suppose to run every day:

The script works, when I login as root and run it manually!

# /etc/crontab - root's crontab for FreeBSD
#
# $FreeBSD: src/etc/crontab,v 1.21.2.3 2000/12/08
#
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#
#minute hourmdaymonth   wdaywho command
#
30  7   *   *   *   root/MIRRORS/mirror.sh
BUT, it can't find the command: rsync

-Original Message-
From: Cron Daemon
Sent: 18 June 2003 07:30 AM
To: root
Subject: Cron  /MIRRORS/mirror.sh
Mirroring Exim Site...
rsync: not found
Mirroring Apache Site...
rsync: not found
In the mirror.sh script, use the full path to rsync:
i.e. instead of 'rsync /from/here /to/here'
do '/usr/local/sbin/rsync /from/here /to/here'
--
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


CROND - Command not found

2003-06-18 Thread Schalk Erasmus
Hi,

I've got a Script that is suppose to run every day:

The script works, when I login as root and run it manually!

# /etc/crontab - root's crontab for FreeBSD
#
# $FreeBSD: src/etc/crontab,v 1.21.2.3 2000/12/08
#
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#
#minute hourmdaymonth   wdaywho command
#
30  7   *   *   *   root/MIRRORS/mirror.sh

BUT, it can't find the command: rsync

-Original Message-
From: Cron Daemon
Sent: 18 June 2003 07:30 AM
To: root
Subject: Cron  /MIRRORS/mirror.sh

Mirroring Exim Site...
rsync: not found

Mirroring Apache Site...
rsync: not found

BUT, the rsync command do exist in the path:
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin

I copied the rsync command to /usr/sbin, but still no luck.

The original location is: /usr/local/bin:

pwd
/usr/local/bin
ll rsy*
-rwxr-xr-x  1 root  wheel  528616 May 17 15:24 rsync

Why can't CRON not find the command?

I also tried adding the above location to the CRONTAB path, but that didn't
work either.

I'm sure I'm missing something small.

Any assistance would be highly appreciated.

Regards
Schalk



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"