error: dup2 -1->1: Bad file descriptor more data
5 Mar
2007
5 Mar
'07
5:04 p.m.
Hello,
It seems that I can transfer (iso) files without problem, but I am unable to transfer directory trees through a pipe.
commands
# udp-sender --log log.txt --pipe "tar -cvzf - dir/" # udp-receiver --log log.txt --pipe "tar -xvzf - "
I keep getting the following error in the receivers [...] dup2 -1->1: Bad file descriptor [...] Any idea out there? :-)
I found the error (is it one?): The pipe command receives the udpcast output file as its output (while updcast then writes to a pipe leading to the pipe command). If you don't use the "--file" option the resp. file descriptor is -1. Solution is simple: specify both, --file and --pipe. Have fun! Björn
6952
Age (days ago)
6952
Last active (days ago)
0 comments
1 participants
participants (1)
-
Schad