|
From: Nicola P. <nic...@gm...> - 2014-04-13 02:02:51
|
Hi,
I have problems with netcat of a big lscp file (~250 lines).
Sometimes happens that the loading stops before the end. It seems that
netcat is too fast.
So I wrote this bash script that introduces some latency between every
line that is sent to LS:
#!/bin/sh
while read line
do
if [ "$( echo "${line}" | head -c 1)" != "#" ]
then
echo "${line}" | netcat -q 0.01 localhost 8888 &
sleep 0.1
fi
done < $1
--
Nicola
http://nicolapandini.damai.it
|