× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi all:

I am writing a program to log the results of SSH FTP running in QSH

The script will look like this:

/QOpenSys/usr/bin/sftp blahblahblah
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.

Any ideas?

Thanks all
------------------
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 thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.