Date: Wed, 14 Mar 2001 09:57:46 +0200 From: Barry Irwin <bvi@devco.net> To: Rick Duvall <maillist@coastsight.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ssh2 for use in CGI script Message-ID: <20010314095746.G22889@devco.net> In-Reply-To: <Pine.BSF.4.21.0103132357550.43419-100000@ns1.coastsight.com>; from maillist@coastsight.com on Tue, Mar 13, 2001 at 11:59:47PM -0800 References: <Pine.BSF.4.21.0103131825110.17634-100000@cody.jharris.com> <Pine.BSF.4.21.0103132357550.43419-100000@ns1.coastsight.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Not strictly on topic, but somthing that may be worth looking at. Since you make no mention of the connect speed between the servers, or the size of directories, this may be a non issue. If you have large amounts of data to sync, or the link is slow, consider moving the initial echo Content-type: text/html echo to the beginning of the script. This will give your web browser some feedback, and reduce the likelyhood of timing out. Personally I'd have it write out a <P> Done </P> for each of the directories. But again that depends on link speeds and the like. Back on topic, tho, have you tried running this from somethng like cron ? are you getting similar messages ? Barry On Tue 2001-03-13 (23:59), Rick Duvall wrote: > > #!/bin/sh > > /usr/local/bin/rsync -e /usr/local/bin/ssh2 -az --delete > /usr/local/apache/htdocs/insecure backup: > > /usr/local/bin/rsync -e /usr/local/bin/ssh2 -az --delete > /usr/local/apache/htdocs/secure backup: > > /usr/local/bin/rsync -e /usr/local/bin/ssh2 -az --delete > /usr/local/apache/htdocs/users backup: > > echo Content-type: text/html > echo > echo '<html><body><p align="center"><font size="+3">Synchronize > Servers</font></p>' > echo 'The servers have been synchronized successfully!' > echo '<p>[<a href="/">Main Page</a>]' > echo '</body></html>' > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010314095746.G22889>