I am writing a program to log the results of SSH FTP running in QSH
The script will look like this:
java -cp blahblahblah Class $?
sftp will write an error message to stderr and put the exit status in $?
(or so I am told).
How would I get the java program Class to read the stderr (or stdout) of
the QShell it runs in?
Can stderr (or stdout) be re-directed to stdin then call java Class?
I am looking for something quicker than redirecting stderr (or stdout) to
a file then reading the file with the Java program.
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2022 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
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.