in reply to SSH leaving terminal confused issue

Moron Thanks for the thought! I think that presumes I am already on the remote system to check for that file. No?

sgifford GREAT! That worked like a charm and dropped the need for me to even have to deal with the forking situation. Thank you VERY much !!

s&&VALKYRIE &&& print $_^q|!4 =+;' *|
  • Comment on Re: SSH leaving terminal confused issue

Replies are listed 'Best First'.
Re^2: SSH leaving terminal confused issue
by Moron (Curate) on Apr 24, 2007 at 16:37 UTC
    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!

      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!