Subject: | |
From: | |
Reply To: | |
Date: | Fri, 20 Dec 1996 10:02:42 +0100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Terry wrote:
> I am writing the store information from our backups out to a disk file
ready
> for FTPing. This file is created using the variable
> SETVAR IVAR HPYEAR*10000+HPMONTH*100+HPDATE
> This variable is proceeded by an I of F depending on if it is a full
backup
> or incremental backup.
>
> While I intend to write a script to FTP the file automatically after
the
> backup, I am still having problems running FTP online (I can't find a
manual).
> If I try to use the variable in the PUT command I receive :-
> MISSING FILE NAME COMPONENT FSERR408
> DATA TRANSER REQUEST FAILED FTPERR13
> If I use the full file name I receive
> INVALID REPLY CODE FROM REMOTE SYSTEM FTPERR11
> DATA TRANSFER REQUEST FAILED FTPERR13
>
> I have done a help on the FTPERR error, but it does not make much
sense to me.
> Is it possible to use a variable as a file name in FTP?
> What am I doing wrong?
>
> Thanks for your help.
> regards ... Terry
I don't think you have access to MPE variables from within ftp. What we
do is either build an input file like:
echo open host > ftpin
echo user .... >>ftpin
echo put ... >>ftpin
....
run ftp.arpa.sys;stdin=ftpin...
or use MPEXs ;INPUT-option of the RUN-command
%run ftp.arpa.sys;input=open...;input=put....
in both cases we are able to use MPE-variables.
Anyway, I'm not sure this is what you asked for and it's seems you have
another problem if ftp-ing the full file name doesn't work but I hope
this can be of some assistance.
/per
|
|
|