Re: Sheell Script for SFTP

From: Venkat (khvenkat_at_cisco.com)
Date: 09/05/05


Date: Mon, 5 Sep 2005 17:51:47 +0530


> This is what i tried but when i execute ./prg1.sh it hangs
>
> #!/bin/sh
> HOST='10.77.31.202'
> USER='root'
> PASSWD='venkat'
>
> ftp -n ${HOST} << EOF
> user {$USER} ${PASSWD}
> cd /root
> get test
> exit 0
> EOF

Hi Ian,

FTP may be disabled can we the same functionality like transferring the
files without prompting for a password using either sftp or scp?
If so what else needs to be modified in the above to acheive it.

Regards,
Venkat



Relevant Pages

  • Re: PB 4.1 - how to FTP without WinInet library ?
    ... For httplite, however, ... "sergei" wrote in message ... FTP Server I am communicating with is IIS ... >>CE devices that uses the FTP functionality of httplite. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: expect in bash script ?
    ... echo $var ... couldn't read file "ftp": ... couldn't read file "eof": ...
    (comp.unix.shell)
  • Re: ftp
    ... execute other commands.. ... normal shell after connecting the FTP ... the "quit" command.. ... If you want to run the command on the local server within the EOF ...
    (comp.unix.shell)
  • Re: Submit Problems (Action Command?)
    ... The problem is most likely due to using FTP rather than FrontPage to ... When submitting the form, the error that occurs is a ... > Cheers, Ian ...
    (microsoft.public.frontpage.programming)
  • RE: Secure FTP Server Search
    ... > not to have some vulnerabilities related with FTP ... Running on windows? ... WFTPD - Windows FTP Server ... Same functionality as ftp, but encypted. ...
    (Security-Basics)