nmccormick
Technical User
I need to get the name and size of files in a directory on a remote server. I need the results of this listing to be stored in a file on the local server. I have tried starting an ftp session and executing
ls -l remotedirectory localfilename
but ftp apparently doesn't like the -l. I have tried other sub-commands like nlist and dir but they don't appear to have an option to print the list on the local server. By the way in case it makes a difference, the local server is Solaris, the remote server is AIX.
I am fairly inexperienced at Unix scripting so I am not sure what other options I may have. Can someone offer some guidance or directions to reading material?
Thanks.
Nancy
ls -l remotedirectory localfilename
but ftp apparently doesn't like the -l. I have tried other sub-commands like nlist and dir but they don't appear to have an option to print the list on the local server. By the way in case it makes a difference, the local server is Solaris, the remote server is AIX.
I am fairly inexperienced at Unix scripting so I am not sure what other options I may have. Can someone offer some guidance or directions to reading material?
Thanks.
Nancy