Hallo Julius,

Looks something like this:

#!/bin/bash
# file named killbill
# set -x
TEST=0

#
TEST=`ps aux | grep 'partner remotedomain' | grep -v grep | wc -l`

echo $TEST;

if [ $TEST -eq 0 ] ; then
echo "rsync is beginning to run"
/usr/bin/rsync -avz -e "/usr/bin/ssh -i /root/.ssh/privatekey"
partner@remotedomain::partnerContent /srv/www/vhosts/mywebfolder/
fi

exit


On Wed, Apr 27, 2011 at 1:32 PM, Julius Kidubuka <[email protected]>wrote:

> Richard,
>
> Let's have a look at your SSH script.
>
> _______________________________________________
> The Uganda Linux User Group: http://linux.or.ug
>
> Send messages to this mailing list by addressing e-mails to:
> [email protected]
> Mailing list archives: http://www.mail-archive.com/[email protected]/
> Mailing list settings: http://kym.net/mailman/listinfo/lug
> To unsubscribe: http://kym.net/mailman/options/lug
>
> The Uganda LUG mailing list is generously hosted by INFOCOM:
> http://www.infocom.co.ug/
>
> The above comments and data are owned by whoever posted them (including
> attachments if any). The mailing list host is not responsible for them in
> any way.
>



-- 
Richard Zulu
gtug lead, Kampala (Uganda)
http://kampala.gtugs.org
_______________________________________________
The Uganda Linux User Group: http://linux.or.ug

Send messages to this mailing list by addressing e-mails to: [email protected]
Mailing list archives: http://www.mail-archive.com/[email protected]/
Mailing list settings: http://kym.net/mailman/listinfo/lug
To unsubscribe: http://kym.net/mailman/options/lug

The Uganda LUG mailing list is generously hosted by INFOCOM: 
http://www.infocom.co.ug/

The above comments and data are owned by whoever posted them (including 
attachments if any). The mailing list host is not responsible for them in any 
way.

Reply via email to