Re: Remote Login using shell script



you can also use ftp, thought it's unsecure:

#!/bin/sh
ftp -n <remote host> << EOF
user <username> <password>
bin
hash
prompt off
cd <subdir>
mget *
bye
EOF

.



Relevant Pages

  • Re: Capturing FTP messages in a script ??????????
    ... > I have a script where I'm doing a FTP. ... > It consists of PROMPT followed by a MGET xxxx* followed by quit. ...
    (comp.unix.aix)
  • Re: Image converting
    ... > Hash: SHA1 ... >> Do this on the prompt and you will know the difference. ... > chmod +x resize.sh ...
    (comp.os.linux.misc)
  • Re: Downloading files from a ftp server
    ... In order for mget to work, you have to toggle off what is called ... "interactive prompting" with the prompt command: ... Moving files also will not work. ...
    (microsoft.public.scripting.vbscript)
  • Re: Non interactive ftp
    ... >> Currently when we do ftp host, ... > userid/password and then ... > prompt is also not ...
    (AIX-L)
  • Re: perl code
    ... > Then retrieve list should prompt the user to select one of the files it returned and then this would invoke another perl command called parselist.pl. ... You could use a hash or even process each file one at a time. ... HTH, ...
    (perl.beginners)