Re: Sheell Script for SFTP
From: Venkat (khvenkat_at_cisco.com)
Date: 09/05/05
- Next message: Shadow Dragon: "Re: FC4 64 Bit"
- Previous message: Venkat: "Re: Sheell Script for SFTP"
- Maybe in reply to: Venkat: "Sheell Script for SFTP"
- Next in thread: Ian East: "Re: Sheell Script for SFTP"
- Reply: Ian East: "Re: Sheell Script for SFTP"
- Reply: Ian East: "Re: Sheell Script for SFTP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Shadow Dragon: "Re: FC4 64 Bit"
- Previous message: Venkat: "Re: Sheell Script for SFTP"
- Maybe in reply to: Venkat: "Sheell Script for SFTP"
- Next in thread: Ian East: "Re: Sheell Script for SFTP"
- Reply: Ian East: "Re: Sheell Script for SFTP"
- Reply: Ian East: "Re: Sheell Script for SFTP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|