Re: - leerzeichen -

From: Oliver Lehmann <lehmann(at)ans-netz.de>
Date: Wed, 28 May 2003 18:51:32 +0200

ml-eng(at)qvc.com wrote:

> #!/bin/sh
> DATE=`date "+%d.%m.%Y"`
> TIME=`date "+%H:%M:%S"`
> DATA=`/bin/cat /tmp/nbtscan.inf`
> for i in $DATA
> do
> echo "'$DATE','$TIME'$i'"
> # /websystem/mysql/bin/mysql -e "INSERT INTO nbtscan VALUES
> ('','$DATE','$TIME','$i')" netstatus
> done

#!/bin/sh
DATE=`date "+%d.%m.%Y"`
TIME=`date "+%H:%M:%S"`

/bin/cat /tmp/nbtscan.inf | while read i
do
  echo "'$DATE','$TIME'$i'"
# /websystem/mysql/bin/mysql -e "INSERT INTO nbtscan VALUES
# ('','$DATE','$TIME','$i')" netstatus
done

-- 
 Oliver Lehmann
        @home: lehmann(at)ans-netz.de
      @office: oliver.lehmann(at)mgi.de
         @www: http://www.pofo.de/  |  http://wishlist.ans-netz.de/
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 28 May 2003 - 18:51:53 CEST

search this site