[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wput? automatic ftp login/upload?



Hi, you can do two things:
1.- create at your home the file .netrc
this file contains:
default login remote_login password remote_pass


(when you connect auto login)

2.- create a shell (this is my favorite :P) 
Username=your_remote_login
Password=your_remote_pass

ftp -n $ftp.server << End-Of-Sessionl
user $Username $Password
hash
cd $Directory
prompt
put $file
bye
End-Of-Session


On Sun, 20 Jun 2004 16:26:04 -0400, Silvan
<dmmcintyr@users.sourceforge.net> wrote:
> 
> I don't have time to go research this at the moment, so I'm going to be lazy
> and ask here.
> 
> I'm writing some documentation, some of which is in CVS, but I have a
> printable PDF version that I want to host myself, so as not to waste
> SourceForge resources needlessly.  I'd like to build an upload of the latest
> version into my document build/index/publish script, but I have no idea what
> the command line equivalent of a "wput" would be.
> 
> I need to log into the FTP server with a username and password, then upload
> some files, allowing them to overwrite the existing files automagically.
> Hands off is strongly preferred.
> 
> Any ideas?  Thanks.
> 
> --
> Michael McIntyre  ----   Silvan <dmmcintyr@users.sourceforge.net>
> Linux fanatic, and certified Geek;  registered Linux user #243621
> http://www.geocities.com/Paris/Rue/5407/
> 
> 
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 




-- 

                        (o_ 
      (o_   (o_    //\
      (/)_   (\)_   V_/_
    Luis Pérez Meliá
      www.luiso.org



Reply to: