Re: Sheell Script for SFTP
From: Venkat (khvenkat_at_cisco.com)
Date: 09/05/05
- Previous message: Arie: "Re: FC4 64 Bit"
- In reply to: Ian East: "Re: Sheell Script for SFTP"
- Next in thread: artsylar: "Re: Sheell Script for SFTP"
- Reply: artsylar: "Re: Sheell Script for SFTP"
- Reply: artsylar: "Re: Sheell Script for SFTP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 5 Sep 2005 17:37:44 +0530
> whoops.. forgot you need to use the -n flag to disable auto-login if
> you want to use a here document.
>
> ftp -n $HOST<<EOF
Hi Ian,
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
Regards,
Venkat
- Previous message: Arie: "Re: FC4 64 Bit"
- In reply to: Ian East: "Re: Sheell Script for SFTP"
- Next in thread: artsylar: "Re: Sheell Script for SFTP"
- Reply: artsylar: "Re: Sheell Script for SFTP"
- Reply: artsylar: "Re: Sheell Script for SFTP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|