09-07-2004 06:57 AM
I have a user that created ftp scripts two years ago to access a win2k ftp server -- all of a sudden this "broke" and although I could not see OS changes, etc. that would cause this, I'm not really comfortable in expecting these to work as expected.
The backslashes are used like this :
Does anyone use these in scripts? I did tell the user to just use forward slashes, but they are reluctant to change anything that has worked for 2 years. Plus, I haven't found a lot of information about using backslashes in such a manner... I was hoping either that someone would have experience (either positive or negative) or other tricks & information so that I can firmly recommend my proposed changes to the script. I looked for quite some time but did not see much information about the subject.
09-07-2004 07:16 AM
instead of MYDIR=\\\\dir1\\\\dir2\\\\
Does it give any error??
09-07-2004 07:30 AM
09-07-2004 07:31 AM
ftp -i -n <<-%% > $OUTFILE 2>&1
user $USERID $PASSWD
$CMD $ARG1 $ARG2
Basically, they're saying $REMOTEDIR=\\\\dir1\\\\dir2\\\\
and calling the ftp script this way...
09-07-2004 07:47 AM
"dir1dir2myfile.csv: The system cannot find the file specified."
Note, this problem is run by a batch system named locally as "maestro" which is actually a tivoli product (Tivoli Scheduler?). The script will run fine manually... which seems really strange.
I already forwarded this to the people that support the batch scheduling software, but they did not find anything conclusive. I was hoping that maybe someone would have had problems with using the backslash (or maybe tell me that this is pretty solid and have ideas for something else that I can look for)... I have looked through ftp client, kernel changes, etc. for anything that has changed since the last successful run of this script.
09-07-2004 07:54 AM
which shell do you use while executing this script from the command line ?
Edit the script and explicitly define the shell to use in the first line
and try again from the scheduler.
Consider defining REMOTEDIR as