Re: first ssh, then start copying

From: Kyler Laird (Kyler_at_news.Lairds.org)
Date: 02/15/04


Date: Sat, 14 Feb 2004 23:12:05 GMT

mark.wirdnam@stud.unibas.ch (Mark Wirdnam) writes:

>I often use ssh to look at what files I have on a remote server, then
>exit, remembering the location of the files I want to copy, and scp
>from the local machine to get the files. This seems so inefficient,

        kyler@jowls:/tmp$ kermit -C "set host /pipe ssh -tt lairds.us kermit -x 2>/dev/null"
        C-Kermit 7.0.196, 1 Jan 2000, for Linux
         Copyright (C) 1985, 2000,
          Trustees of Columbia University in the City of New York.
        Type ? or HELP for help.
        (/tmp/) C-Kermit>remote dir /etc/motd
         Press the X or E key to cancel.
        -rw-r--r-- 355 2004-01-20 17:30:43 /etc/motd
        (/tmp/) C-Kermit>get /etc/motd
        (/tmp/) C-Kermit>run cat -n motd
             1 Linux lairds.us 2.6.1 #1 Sun Jan 18 02:23:04 UTC 2004 i686 GNU/Linux
             2
             3 The programs included with the Debian GNU/Linux system are free software;
             4 the exact distribution terms for each program are described in the
             5 individual files in /usr/share/doc/*/copyright.
             6
             7 Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
             8 permitted by applicable law.
        (/tmp/) C-Kermit>close
         Closing connection
        (/tmp/) C-Kermit>quit

--kyler



Relevant Pages

  • Re: Application ExitCode
    ... > I've created a Windows Script that opens the MDB ... > application on the local machine and waits for it to ... > exit, storing the objects exitcode. ...
    (microsoft.public.access.modulesdaovba)
  • Re: executing diff command and scp in a script not working..
    ... There are certain files missing in B..On finding the missing files I ... have to scp those missing files from a remote machine to the local ... machine to my local machine under /home/username/folder2.. ...
    (comp.unix.shell)
  • Re: Checking if a Word file is open
    ... whether the local machine has the file open by seeing if there is an open ... If Err.Number = 429 Then Exit Function ... we cannot close a doc twice ... MsgBox sFile & " was open, ...
    (microsoft.public.scripting.vbscript)
  • Re: scp data while preserving file modification times?
    ... I can copy the data to my local machine using scp -r. ... *could* tar everything up on the remote side and just download the tar ... file, but the remote machine is shared, and I don't want to hose the ...
    (comp.security.ssh)
  • Re: traffic accounting per username with ipfw in 5.4 ? (more)
    ... and initiated from the local machine. ... If I scp a ... >I've looked a bit into this, and it appears that sshd changes uid in FreeBSD ... To unsubscribe, ...
    (freebsd-questions)