I'm trying to write a wrapper for scp.
Version 1.0 goes
works a treat.
What I'm trying for Version 1.1 has a more sophisticated output and looks like
But all the output seems to disappear. Can I assume from this that scp is writing directly to tty? Whilst I have plenty of workrounds this has got me intreaged. Any ideas?
Columb Healy
Version 1.0 goes
Code:
#I've edited out the bit that sets boxes to <host1>,<host2>..
for n in $(echo ${_boxes}|tr ',' ' ')
do
scp $1 $n:$2
done
What I'm trying for Version 1.1 has a more sophisticated output and looks like
Code:
for n in $(echo ${_boxes}|tr ',' ' ')
do
export n
scp $1 $n:$2 2>&1 | awk '{printf ENVIRON["n"]":";print}'
done
Columb Healy