From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e7cc1aea52f175db X-Google-Attributes: gidfee84,public From: Rob Urban Subject: Re: ftp scripts Date: 1998/09/29 Message-ID: <36107E7D.8589ADBA@rto.dec.com>#1/1 X-Deja-AN: 395888686 Content-Transfer-Encoding: 7bit References: <01bde58d$c8473060$b51cdec2@dalloyd.demon.co.uk> Content-Type: text/plain; charset=us-ascii Organization: Digital Equipment GmbH, Munich, Germany Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 I promise you you'll be happier in the long run if you get perl (there is a setld perl kit on ftp.digital.com:/pub/DEC/) and then get the ftp extension for perl and use that. It allows you to completely automate ftp transactions *reliably*. Another solution is to get TCL/TK, and then build the expect extension, which allows the automating of arbitrary command-line dialogs. Rob Urban Al wrote: > I am currently running a DUNIX 4.0b system. We have a requirement to do > some automated files transfers between ftp servers. I have written script > which uses some SQL to generate the file. I then need to ftp the file to a > remote site. I am having a problem with the syntax of my shell script. How > do you pass the relevant commands to ftp (open ftp.mycompany.com etc.) from > a shell script?