2 FS::SSH - Subroutines to call ssh and scp
5 use FS::SSH qw(ssh scp issh iscp sshopen2 sshopen3);
11 scp($source, $destination);
13 iscp($source, $destination);
15 sshopen2($host, $reader, $writer, $command);
17 sshopen3($host, $reader, $writer, $error, $command);
20 Simple wrappers around ssh and scp commands.
24 Calls ssh in batch mode.
27 Prints the ssh command to be executed, waits for the user to
28 confirm, and (optionally) executes the command.
30 scp SOURCE, DESTINATION
31 Calls scp in batch mode.
33 iscp SOURCE, DESTINATION
34 Prints the scp command to be executed, waits for the user to
35 confirm, and (optionally) executes the command.
37 sshopen2 HOST, READER, WRITER, COMMAND
38 Connects the supplied filehandles to the ssh process (in
41 sshopen3 HOST, WRITER, READER, ERROR, COMMAND
42 Connects the supplied filehandles to the ssh process (in
48 scp stuff should transparantly use rsync-over-ssh instead.
51 the ssh manpage, the scp manpage, the IPC::Open2 manpage,
52 the IPC::Open3 manpage
55 ivan@voicenet.com 97-jul-17
57 added sshopen2 and sshopen3 ivan@sisd.com 98-mar-9
59 added iscp ivan@sisd.com 98-jul-25 now iscp asks y/n, issh
60 and took out path ivan@sisd.com 98-jul-30
62 pod ivan@sisd.com 98-sep-21