Hi Kirk,
On 4/20/2012 5:32 PM, Kirk Goins wrote:
Anyone know the inthe IFS of the scp and sftp cmd?
They are located in /QOpenSys/usr/bin/sftp (or scp)
One easy way to determine this would be to:
1) type: CALL QP2TERM
2) type: whence sftp
3) type: whence scp
'whence' is a tool that will find a program in your PATH, and print the
location it found. (it does not call the program, just prints the location.)
I recommend that you do not hard code this path name into a program if
you can help it. Instead, use ADDENVVAR to set it as part of your PATH
(or PASE_PATH). You can use LEVEL(*SYS) to make it apply to all jobs on
the system.
That way, if you ever decide to test a different copy of scp or sftp
that are located in another directory, you can just set your PATH
differently. Or if IBM should ever load scp/sftp in a different
location, then you can just change your PATH, you won't have to change
the programs.
It's very much like a *LIBL, actually...
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.