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 messageReceived on Wed 28 May 2003 - 18:51:53 CEST