|
Author: Sanjay Sethi
Date: 07-06-02 16:04
When I run the following script on my command line, it works OK, but when I put it into cronjob for every minute, it does not do anything. I am trying to push my source to all production servers every minute ( it is a test right now ).
Please advise.
======= begin rsync.sh ===================
#!/bin/sh
/usr/local/bin/rsync -r -q -b -t /apps/rca/migr/bin/ /apps/rca/prod/bin;
/usr/local/bin/rsync -e ssh -rqbt /apps/rca/prod/bin/ oracle@irmuxs620:/home/oracle/prod/bin;
/usr/local/bin/rsync -e ssh -rqbt /apps/rca/prod/bin/ oracle@irmuxs630:/home/oracle/prod/bin;
============= end rsync.sh
|
|
Reply To This Message
|
|
Author: Dan Langille
Date: 07-06-02 16:23
Did you press ENTER at the end of the line in your crontab?
Show us your crontab entry.
|
|
Reply To This Message
|
|
Author: Sanjay Sethi
Date: 07-06-02 17:24
Hi Dan,
Thanks for prompt attention. I have resolved the issue, it was due to the path for ssh.
Since you are going to read this. What I should do completely replace the contents of my destination ie irmuxs620 from local machine ie /apps/rca/prod/bin/
/usr/local/bin/rsync -e ssh -rqbt /apps/rca/prod/bin/ oracle@irmuxs620:/home/oracle/prod/bin
Again thanks a lot !Dan Langille wrote:
>
> Did you press ENTER at the end of the line in your
> crontab?
>
> Show us your crontab entry.
|
|
Reply To This Message
|
|
Author: Sanjay Sethi
Date: 07-06-02 17:31
CORRECTION :
Since you are going to read this. What I want to do is to completely replace the contents of my destination ie irmuxs620 from local machine ie /apps/rca/prod/bin/
|
|
Reply To This Message
|
|