in reply to Re: SSH leaving terminal confused issue
in thread SSH leaving terminal confused issue

OIC
use File::Remote; { my $secure = new File::Remote (rsh => "/usr/local/bin/ssh", rcp => "/usr/local/bin/scp" ); $secure -> open( \*SSHID, "$host:~$user/.ssh/identity") ? ( $secure -> close( \*SSHID ) || die($!) ) : die "access denied\n"; }
updated for clarity and to heed a warning about filehandle syntax of open in File::Remote
__________________________________________________________________________________

^M Free your mind!

Replies are listed 'Best First'.
Re^3: SSH leaving terminal confused issue
by naikonta (Curate) on Apr 24, 2007 at 17:35 UTC
    Why did you change without notice? It changed just after I upvoted on it. For a very slight moment, I though that my voting somehome changed it.

    Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

      I added an explanation now, sorry about that.
      __________________________________________________________________________________

      ^M Free your mind!