On Fri, Mar 26, 2004 at 08:35:05AM +0200, Dmitry A.Deineka wrote:
On Fri, Mar 26, 2004 at 05:30:50AM +0200, Alexander Yeremenko wrote:
Howto : get from remote:/zuka to #zuka if succsess; then mv #zuka to zuka
Если я правильно понял, то:
#!/bin/sh
tempfoo=`basename $0` TMP=`mktemp -q /tmp/${tempfoo}.XXXXXXXX` if [ $? -ne 0 ]; then echo "$0: Can't create temp file, exiting..." exit 1 fi
fetch -q -o $TMP http://remote/zuka if [ $? -ne 0 ]; then echo "$0: Can't fetch zuka from remote..." exit 1 fi mv $TMP zuka rm -f $TMP
Вместо fetch - все, что угодно: scp, wget, lftp =) Подменять этим fetch в bsd.port.mk ? Или как-то запихнуть в lsof ?
-- AY7-UANIC || AY15-RIPE =================================================================== uanog mailing list. To Unsubscribe: send mail to majordomo@uanog.kiev.ua with "unsubscribe uanog" in the body of the message
-- Dmitry A.Deineka DAD1-UANIC DD518-RIPE iTL Company, Kharkov UA phone: +380 57 7136979 http://www.itl.ua fax: +380 572 282375
=================================================================== uanog mailing list. To Unsubscribe: send mail to majordomo@uanog.kiev.ua with "unsubscribe uanog" in the body of the message
-- AY7-UANIC || AY15-RIPE =================================================================== uanog mailing list. To Unsubscribe: send mail to majordomo@uanog.kiev.ua with "unsubscribe uanog" in the body of the message