aixmurderer
IS-IT--Management
Hi all
I need to list the files on a remote FTP server, move them to a working directory on the remote server, download them, and finally rename them on the remote server. Quite an ask...
My idea was to read the remote file list into a local file, then loop through the local file and do what's required for each file name in the list.
The problem I have is with writing the remote list of files to a local file (e.g. ls > file.list), the local file is created but is empty. Tried "ls", "dir", "nlist", all with the same result.
What am I doing wrong?
IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
I need to list the files on a remote FTP server, move them to a working directory on the remote server, download them, and finally rename them on the remote server. Quite an ask...
My idea was to read the remote file list into a local file, then loop through the local file and do what's required for each file name in the list.
The problem I have is with writing the remote list of files to a local file (e.g. ls > file.list), the local file is created but is empty. Tried "ls", "dir", "nlist", all with the same result.
What am I doing wrong?
IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter