Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am logged-on system-A and i want to put some file on system-B without prompting user to enter password. Absolutely Non-Interactivery.
The USER, PASSWORD and SERVER will be exported in the environment.
The shell is : ksh
Can u kindly tel me what are the pre-requisites and how to go about it in a step by step procedure.
I tried...
ftp ftp://$FTP_User:$FTP_Password:$FTP_Server/home/indiancosmonaut/
where FTP_User, FTP_Password, FTP_Server are environment variables and /home/indiancosmonaut/ is the directory on system-B where i wish to put the file.
But its showing error: unknown host or invalid literal address
I am logged-on system-A and i want to put some file on system-B without prompting user to enter password. Absolutely Non-Interactivery.
The USER, PASSWORD and SERVER will be exported in the environment.
The shell is : ksh
Can u kindly tel me what are the pre-requisites and how to go about it in a step by step procedure.
I tried...
ftp ftp://$FTP_User:$FTP_Password:$FTP_Server/home/indiancosmonaut/
where FTP_User, FTP_Password, FTP_Server are environment variables and /home/indiancosmonaut/ is the directory on system-B where i wish to put the file.
But its showing error: unknown host or invalid literal address
Please help
Kind Regards,
indiancosmonaut
If using the URL style.. it would look something like:
Can u kindly give me some real example of the syntax.
Also, since i need to put a request-file on system-B and after sometime i need to retrieve a reply-file from system-B. Can u suggest me some script to do this.
Thanks in advance,
Kind Regards,
indiancosmonaut!
Last edited by indiancosmonaut; 04-10-2007 at 01:07 AM.
I wonder if ftp server doesn't like you including the path in the ftp command.
Try ftp://ftpuser:ftppassword@host
and then have a
cd home/indiancosmonaut
in your ftp script.
Sometimes, expect is used to provide the username and password. This general solution shouldn't be necessary in this case.
Look at the output of:
echo ftp ftp://$FTP_User:$FTP_Password:$FTP_Server/home/indiancosmonaut/
Does it print what you expect?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.