vznnc(8) | Containers | vznnc(8) |
vznnc - run a program connected to a socket
vznnc |
{ -l | -c } -p port [-f fd] [--] program [arg ...] |
This "nano-netcat" utility can be used to either listen on or connect to a TCP port at localhost, and run a specified program with its stdin and stdout (or a specified file descriptor) connected to the socket.
Returns program exit status upon success, or one of the following codes in case of an error:
To run receiving side of ploop copy command on a remote server, using openssh port forwarding:
PORT=2345
ssh -L localhost:$PORT:localhost:$PORT $REMOTE_SERVER \ vznnc -l -p $PORT -- ploop copy -d $FILE -i0 -o1
To do the same, but with stdin and stdout intact, using file descriptor 5 for communication:
ssh -L localhost:$PORT:localhost:$PORT $REMOTE_SERVER \ vznnc -l -p $PORT -f 5 -- ploop copy -d $FILE -i5 -o5
Copyright (C) 2014, Parallels, Inc. Licensed under GNU GPL v2.
29 May 2014 | OpenVZ |