From owner-freebsd-questions Tue Mar 13 23:54:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.dev.itouchnet.net (mx1.dev.itouchnet.net [196.14.181.66]) by hub.freebsd.org (Postfix) with ESMTP id 83E9D37B718 for ; Tue, 13 Mar 2001 23:54:15 -0800 (PST) (envelope-from bvi@devco.net) Received: from nobody by mx1.dev.itouchnet.net with scanned_ok (Exim 3.16 #1) id 14d6B0-000BBZ-00 for freebsd-questions@freebsd.org; Wed, 14 Mar 2001 09:58:34 +0200 Received: from [196.14.181.39] (helo=e0-ter-fw1.dev.itouchnet.net) by mx1.dev.itouchnet.net with esmtp (Exim 3.16 #1) id 14d6B0-000BBK-00 for freebsd-questions@freebsd.org; Wed, 14 Mar 2001 09:58:34 +0200 Received: from daemon.prv.dev.itouchnet.net ([192.168.8.10]) by e0-ter-fw1.dev.itouchnet.net with esmtp (Exim 3.15 #1) id 14d66m-000HXK-00 for freebsd-questions@freebsd.org; Wed, 14 Mar 2001 09:54:12 +0200 Received: from bvi by daemon.prv.dev.itouchnet.net with local (Exim 3.16 #1) id 14d6AE-00070r-00; Wed, 14 Mar 2001 09:57:46 +0200 Date: Wed, 14 Mar 2001 09:57:46 +0200 From: Barry Irwin To: Rick Duvall Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ssh2 for use in CGI script Message-ID: <20010314095746.G22889@devco.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from maillist@coastsight.com on Tue, Mar 13, 2001 at 11:59:47PM -0800 X-Checked: This message has been scanned for any virusses and unauthorized attachments. X-iScan: Version $Id: iScan,v 1.26 2000/10/08 14:12:55 rip Exp $ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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

Done

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 '

Synchronize > Servers

' > echo 'The servers have been synchronized successfully!' > echo '

[Main Page]' > echo '' > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message