in reply to Re: Perl - Socket and Data Compression
in thread Perl - Socket and Data Compression
There are a number of possibilities:
You could use Expect to fake a password interaction with SSH. That's probably your best bet because it does everything you want.
You could read the stdin and then send it to a socket, so your script has a similer user interface to ssh. E.G
$ tar -czgf- /path/to/stuff | ./your_script
You could use named pipes (AKA fifo).
$ mkfifo mypipe $ tar -czf mypipe /path/to/stuff & $ ./your_script --infile mypipe
The best place to read about all this and more is perlipc.
If you're going to do your own networking, and not use SSH, check out IO::Socket::SSL.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl - Socket and Data Compression
by Marshall (Canon) on Jul 18, 2009 at 05:35 UTC | |
by pileofrogs (Priest) on Jul 18, 2009 at 15:15 UTC | |
by Marshall (Canon) on Jul 21, 2009 at 23:34 UTC | |
by pileofrogs (Priest) on Jul 22, 2009 at 16:02 UTC | |
by Marshall (Canon) on Jul 22, 2009 at 17:39 UTC |