Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

How to transfer directories through an automated ftp job

Becke
Super Advisor

How to transfer directories through an automated ftp job

Hi everyone,

I have written a korn shell automated script which only transfer files, but how do I transfer all the subdirectories in the filesystem.

Any help would be greatly appreciated. Below is my script.
#!/usr/bin/ksh
cd /FILESYSTEM_NAME
USER=root
PASS=1234
MACHINE=hostname
FTP=/usr/bin/ftp
$FTP -n $MACHINE </dev/null 2>$1
user $USER $PASS
ascii
cd /FILESYSTEM_NAME
mput *

The above script works fine, but what do i need to do in the script so it transfer all the files in the subdirectories of /FILESYSTEM_NAME. Please advise.
1 REPLY
Karl Rohwedder
Honored Contributor

Re: How to transfer directories through an automated ftp job

May be you question is better suited for the HP-UX or Tru64 forum?

This is the OpenVMS forum...

regards Kalle