At 02:07 PM 1/8/2003 -0800, Gary Jackson wrote:
>We would like to be able to automate the transfer of files between a PC and
>an HP e3000. My assumption is that FTP is the best way to accomplish that.
>Does anyone have suggestions/samples/websites that could help me get started
>on this?
Your request is a bit vague, but here is one working example going from an
HP to a PC:
! comment Build ftp command file
! echo open xxxxxxx > ftpcmd
! echo USER userid >> ftpcmd
! echo ASCII >> ftpcmd
! echo pwd >> ftpcmd
! echo cd targetdir >> ftpcmd
! echo put SOURCE target.dat >> ftpcmd
! echo exit >> ftpcmd
! CONTINUE
!
! comment Transmit the source file
! run ftp.arpa.sys;stdin=ftpcmd
! if ftplasterr <> 0 then
! echo #!HPJOBTYPE!HPJOBNUM !HPMONTH/!HPDATE/!HPYEAR !HPTIMEF &
! MSG: FTP of source file to server failed! &
! FTP error is !FTPLASTERR
--------------------------------
Tom Brandt
Northtech Systems, Inc.
130 S. 1st Street, Suite 220
Ann Arbor, MI 48104-1343
http://www.northtech.com/
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *