I have found a solution.
Below is a sample of the code we have used to get the results we want. We only are wanting to pull one file, so we will need to clear the file everytime we pull it.
ftp remote filelist sFileSpec ;Get list of files from FTP server
while $FTPSTATUS ;Loop...
We are trying to pull the file from a remote system, yes. We are using the command:
ftp remote copyfile filename
However, because the filename has a timestamp, we cannot specify the exact filename. The doc appears to show this filename cannot contain wildcards. Is there another solution?
I would like to copy a file using a procomm script. The problem is, I do not know what the last characters of the file will be at any given day. Is there anyway to pull a file like you would do with the '*'?
FILENAME*
would pull over a file called FILENAME123
thankyou.
I am trying to send a large xml file using a tcp/ip connection. The problem I am having is sending a large chunk of data (CLOB) using the utl_tcp.write_line. I am able to break the clob down into chunks of text string, but it appears the receiving location wants ALL of the text file sent in...
I am using a procomm script to copy a file from one server to a unix box. I would like to execute a chmod on the file to allow ALL login access to remove the file. Is there a procomm ftp command to change the permissions of the file to be read/write for all users?
ex.)
ftp local copyfile...
That worked! Thanks!
So the outcome should be the following ,correct?
original filename
----------------------
BARNES_XML_INV
new filename
----------------------
BARNES_XML_INV_01012005
using the format(strfmt sNewFile "%s_%02d%02d%d" sOldFile iMonth iDay iYear)
Thank you. But to clarify, the file on the PC side is called BARNES_XML_INV - and I want to take this file and COPY it to UNIX with the date appended. So I either need to RENAME the file and THEN send to UNIX -or- change the name as it is copied over. In your example, the file with the...
I am new to Procomm scripts and am working off an existing one. In part, this script copies a file from a PC to a UNIX BOX, using the following command:
ftp local copyfile "BARNES_XML_INV"
What I would LIKE to do is copy the file to UNIX with a DATE STAMP, like so "BARNES_XML_INV" + MMDDYYYY...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.