Tru64 ftp ksh script problem
Posted in 2005
Hi everyone, I have the two scriptx below. It ran without error; however the files were not transferred. Please let me know what I'm doing wrong. Any help is very appreciated. Xuanhai #!/bin/ksh #script1 ftp <<EOF open myservername #W2K server myusername #myusername on W2k server mypassword #mypassword on W2K server put enpull.csv #transfer this file from tru64 to W2K server put glpull.csv EOF #!/bin/ksh #script2 I found this script on UNIX script website userstr = "myusername" pwstr = "mypassword" file1 = "enpull.csv" file2 = "glpull.csv" ftp -in W2Kservername <<-END_FTP #connect to W2K server user $userstr $pwstr #myusername and mypassword on W2k server put ${file1} #transfer this file from tru64 to W2K server put ${file2} END_FTP sending to informix-list