home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.unix.geeks      The gathering of the socially-retarded      298 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 25 of 298   
   Scott Post to BIGGIE   
   Re: Script for ftp?   
   13 Jan 04 01:53:10   
   
   From: runnershadow@hotmail.com   
      
   You could also check out Expect.  This has been great for scripting our   
   many more tedious tasks.  http://expect.nist.gov/   
      
   "BIGGIE"  wrote in   
   news:NLALb.1756$cN2.431@newssvr29.news.prodigy.com:   
      
   > Try this:   
   > #!/bin/sh   
   > HOST=ftp.nai.com   
   > PASSWD=ftp   
   > USER=anonymous   
   > ftp -in $HOST< user $USER $PASSWD   
   > cd /pub/datfiles/english   
   > bin   
   > mget *tar   
   > quit   
   > EOF   
   >   
   > Good luck   
   > "Bill"  wrote in message   
   > news:vvtjsfh777o77a@corp.supernews.com...   
   >> I haven't written a shell script in years and I can't remember how to   
   >> run ftp from inside the script including signon info. I need to   
   >> transfer a file several times a day unattended.   
   >>   
   >> TIA   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca