3 <TITLE>FS::SSH - Subroutines to call ssh and scp</TITLE>
4 <LINK REV="made" HREF="mailto:ivan@rootwood.sisd.com">
13 <LI><A HREF="#NAME">NAME</A>
14 <LI><A HREF="#SYNOPSIS">SYNOPSIS</A>
15 <LI><A HREF="#DESCRIPTION">DESCRIPTION</A>
16 <LI><A HREF="#SUBROUTINES">SUBROUTINES</A>
17 <LI><A HREF="#BUGS">BUGS</A>
18 <LI><A HREF="#SEE_ALSO">SEE ALSO</A>
24 <H1><A NAME="NAME">NAME</A></H1>
26 FS::SSH - Subroutines to call ssh and scp
30 <H1><A NAME="SYNOPSIS">SYNOPSIS</A></H1>
32 <PRE> use FS::SSH qw(ssh scp issh iscp sshopen2 sshopen3);
35 <PRE> ssh($host, $command);
38 <PRE> issh($host, $command);
41 <PRE> scp($source, $destination);
44 <PRE> iscp($source, $destination);
47 <PRE> sshopen2($host, $reader, $writer, $command);
50 <PRE> sshopen3($host, $reader, $writer, $error, $command);
54 <H1><A NAME="DESCRIPTION">DESCRIPTION</A></H1>
56 <PRE> Simple wrappers around ssh and scp commands.
60 <H1><A NAME="SUBROUTINES">SUBROUTINES</A></H1>
62 <DT><STRONG><A NAME="item_ssh">ssh HOST, COMMAND</A></STRONG><DD>
64 Calls ssh in batch mode.
66 <DT><STRONG><A NAME="item_issh">issh HOST, COMMAND</A></STRONG><DD>
68 Prints the ssh command to be executed, waits for the user to confirm, and
69 (optionally) executes the command.
71 <DT><STRONG><A NAME="item_scp">scp SOURCE, DESTINATION</A></STRONG><DD>
73 Calls scp in batch mode.
75 <DT><STRONG><A NAME="item_iscp">iscp SOURCE, DESTINATION</A></STRONG><DD>
77 Prints the scp command to be executed, waits for the user to confirm, and
78 (optionally) executes the command.
80 <DT><STRONG><A NAME="item_sshopen2">sshopen2 HOST, READER, WRITER, COMMAND</A></STRONG><DD>
82 Connects the supplied filehandles to the ssh process (in batch mode).
84 <DT><STRONG><A NAME="item_sshopen3">sshopen3 HOST, WRITER, READER, ERROR, COMMAND</A></STRONG><DD>
86 Connects the supplied filehandles to the ssh process (in batch mode).
88 <H1><A NAME="BUGS">BUGS</A></H1>
93 scp stuff should transparantly use rsync-over-ssh instead.
95 <H1><A NAME="SEE_ALSO">SEE ALSO</A></H1>
97 <EM>ssh</EM>, <EM>scp</EM>, <A HREF="../IPC/Open2.html">IPC::Open2</A>, <A HREF="../IPC/Open3.html">IPC::Open3</A>