One place we send daya to decided to completely change their server.
We retrieve two file and send two files.
All the processes use scp. Variables are built with an RPGLE program.
The send scripts work perfectly.
The receive scripts are goofy.
Here is one get line, in the script file:
scp -v ${LSID}@xxxx.xxxx.com:${PATHE}$1 ${PATHO}
Only change is I obfuscated the system name. Clearly, there is a
space after $1 in the script itself. But, it fails. I looked at the
log. Space following $1 was removed in the log. No changes made to
the RPGLE that build the variables.
Two questions:
1) Why do the GET scripts work and the PUT scripts have a space removed?
2) In the log itself, is the command in the log what was sent to the
site, or something the site sent back? I ask, because I have seen
passwords obfuscated, and don't know which side did that.
Guy on the other end suggested I add a space. Easy enough to do, but
I can't understand why the script, which worked on the old server,
would need to be changed. And, I looked at the scripts used for the
old server. One space. Makes me doubt whether that would make any
difference even if I added twenty spaces.
John McKee
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.