It is working fine in HPUX, but not in LINUX.
Can you please advise how to tweak this script for LINUX?
Please help!
;rename the file to use uppercase letters
set DCLcom = concat("mv $", filename, " $", uc_file_dir)
call echo(DCLcom)
set DCLlen = size(trim(DCLcom))
set DCLstatus = 0
call DCL(DCLcom,DCLlen,DCLstatus)
; FTP file to Specific Location
call echo(concat("Preparing to FTP ",uc_filename,"... (",format(cnvtdatetime(curdate,curtime3),"MM/DD/YYYY HH:MM:SS;;D"),")"))
declare cQuote = c1 with protect,constant('"')
declare sCommand = vc with protect,noconstant("")
declare iCmdStatus = i2 with protect,noconstant(0)
set theRemoteHost = "xx.xx.xx.xx"
set theRemoteUserName = "ANACOMP"
set theRemotePassword = "xxxxxx"
set theLocalDirectory = "$cer_print"
set theRemotePath = "/FTP/Cereplex"
set theLocalFileName = uc_file_dir
set theRemoteFile = uc_filename
set sCommand = concat("print ",
cQuote ,
"open ",
theRemoteHost,
"\n user ",
theRemoteUserName,
" ",
theRemotePassword,
"\n cd ",
theRemotePath,
"\nascii \n put $",
theLocalFileName,
" ",
theRemoteFile,
cQuote,
" | ftp -i -n")
call echo(sCommand)
call dcl(sCommand,size(trim(sCommand)),iCmdStatus)