On Mon, 2006-06-19 at 16:31 +0200, Roger Oberholtzer wrote:
Does SUSE 10 come with a command line ftp copy command. I mean that I can copy a file from the local system to a remote ftp location, giving all info on the command line. Oddly, the ftp client I see in 10.0 allows this when copying from a remote server, but not when copying to a remote server. This works (copies remfile to the local machine): ftp user:pass@ftp.remote.com:/remfile . but this does not ftp remfile user:pass@ftp.remote.com:/ The error I get is: ftp: Unknown port `user:pass@ftp.remote.com', using port 21 ftp: Name or service not known I think is is a bug in that is is parsing the : as though it separates a host and port, when it is separating a user and password. It seems to make no difference how I specify the remote system: including the user:pass part fails.
The GNU/BSD ftp programs don't always take stdin direct chats as well as legacy SysV ones. So I don't recommend their use. There are alternative FTP clients that work much better -- such as curl, ncftp and wget, among others that are built with interactive control (chat/expect-like scripting). A number of my positions (totaling at least 3 years of my career) have included writing shell and Perl scripts for near-real and non-real time, file encryption and/or encrypted file transfer for major financial back-ends at more than one Fortune 100 corporation, as well as a couple of US state municipalities. If you'd like to tell me more about your application/need, I can help you evaluate your best course of action. You can do it off-list if you'd like it to be more confidential. -- Bryan J. Smith Professional, technical annoyance mailto:b.j.smith@ieee.org http://thebs413.blogspot.com ---------------------------------------------------------- The existence of Linux has far more to do with the breakup of AT&T's monopoly than anything Microsoft has ever done. -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com