mydir is a directory in server2 and there are some test files in it.
when executing this code, the files in server1 is copied to mydir folder in server2. please let me know where im goin wrong. i have given the login details of server2 in the .netrc file in server1.
contents of $ftpfile:
cd mydir
mget sample.txt sample2.txt
sample.txt sample2.txt are files in server1. same output for mput as well.
I know that ur code will work fine. As this is a part of an automation script i cannot use urs. Please let me know what is wrong in the code posted by me.?
By the way this is unix not MSDOS. The "." is not significant in filenames though there is a convention to use it to mean filetype. Unless you want to only transfer files containing a "." in their name we would use "" rather than "*.".