HP3000-L Archives

July 2000, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Ramachandran Thekkekara <[log in to unmask]>
Reply To:
Ramachandran Thekkekara <[log in to unmask]>
Date:
Mon, 31 Jul 2000 09:45:06 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (37 lines)
Vijesh,

You may create a job and schedule it with following commands,

!SETVAR INFIL RHT("!HPYYYY",4) + RHT("0!HPMONTH",2) + &
!         RHT("0!HPDATE",2)+".txt"
!ECHO o xxx.xxx.xxx.xxx  > FTP1
!ECHO u username >> FTP1
!ECHO password >> FTP1
!ECHO ascii >> FTP1
!ECHO cd directory-name-on-ftp-server >> FTP1
!ECHO get !INFIL HPFILE.HPGROUP;rec=-250,,f,ascii;disc=5000 >> ftp1
!ECHO quit >> FTP1
!RUN ftp.ARPA.SYS;STDIN=FTP1
!IF FTPLASTERR <> 0
!   TELLOP   !!! ERRROR !!! FTP failed for XYZ  job !!! 
!ENDIF

HTH
Ram Thekkekara



Ram Thekkekara
Hickory Farms, Inc
Phone: (419) 893 7611 xt 376 EST
Email : [log in to unmask]

>>> Vijesh <[log in to unmask]> 07/29/00 02:42PM >>>
Greetings!

Looking for help from all the GURUs out there!

A client of ours would FTP a txt file to my server (running winnt 4.0), this is a daily process and the txt file will be named "DDMMYY.txt"(where ddmmyy will be day,month and year). I have to transfer the daily file from the NT server to a HP3000 host with a fixed file name, lets say "xx12".

Need help on how to automate this process of FTP to HP3K, since the source file name is variable and assuming there could be multiple files in the source directory on the NT server. I am required to pick only the current days file (ddmmyy.txt), ignore other files and FTP it to HP3K.

ATOM RSS1 RSS2