www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
To: | cygwin AT cygwin DOT com |
From: | "Cary Jamison" <Cary_Jamison AT Symantec DOT com> |
Subject: | Re: bash is crashing |
Date: | Fri, 5 Aug 2005 18:40:59 -0600 |
Lines: | 47 |
Message-ID: | <dd10ut$ppj$1@sea.gmane.org> |
References: | <080420051614 DOT 24258 DOT 42F23EF20001988C00005EC222007507440A050E040D0C079D0A AT comcast DOT net> <dcti13$rrc$1 AT sea DOT gmane DOT org> |
X-RFC2646: | Format=Flowed; Original |
X-IsSubscribed: | yes |
Cary Jamison wrote: >> Ok, I should have sent it too. There is probably a better way to do >> this, but here it is... >> >> #!/bin/bash >> >> # scp anything in the sync directory to the remote machine >> # and then move it to the done directory. >> # Currently only works with single files, not directories. >> >> RHOST=cjp >> RDIR="~/sync/recv" >> LDIR=~/sync >> LDONEDIR=~/sync/done >> LOGFILE=~/synclog >> TIMESTAMP=%D:%T >> DATE="date +$TIMESTAMP" >> >> echo $($DATE) sync.sh starting > $LOGFILE >> >> cd $LDIR >> while true >> do >> sleep 10 It appears to be crashing here in the sleep. It will go for just a few loops around to several minutes before crashing. What should I try next. Maybe a strace? >> for i in * .[^.]* >> do >> if [[ -f $i ]] >> then >> echo -ne $($DATE)\\040 >> $LOGFILE >> if scp -p -q $i $RHOST:$RDIR >> $LOGFILE 2>&1 >> then >> mv $i $LDONEDIR >> echo $($DATE) copied $i >> $LOGFILE >> fi >> fi >> done >> done Cary -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |