× 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.



On 30/01/06, James H H Lampert <jamesl@xxxxxxxxxxx> wrote:
> vhamberg@xxxxxxxxxxx wrote:
> > You can redirect the output of QShell commands to
> > physical files.
>
> Clever! I think you've just put a sword through this
> particular Gordian knot.
>
> It would be nice if there were a way to put the outfile in
> QTEMP, but I suspect that's probably impossible, given
> that QSHELL runs across job boundaries. And since I don't
> expect this thing to be run by multiple users
> concurrently, it's not a big deal. And at least for the
> problem at hand, your solution definitely beats anything
> involving third-party downloads or front-ending some API
> call.

Hi James

No, it's not impossible. Instead of doing the override in QSH, do it
in the CL first. Using Vern's example:

CRTPF FILE(QTEMP/LS255) RCDLEN(255)
OVRDBF FILE(STDOUT) TOFILE(QTEMP/LS255)
QSH CMD('ls -l /home/vern')

and your output will be in your temporary file. The overrides work
fine for the 'nix 'standard' files - stdin, stdout & stderr (for use
with ftp scripts, et al)

Regards, Martin
--
martin@xxxxxxxxxx  AIM/Gaim: DBG400dotNet  http://www.dbg400.net   /"\
DBG/400 - AS/400 & iSeries Open Source/Free Software utilities     \ /
Debian GNU/Linux | ASCII Ribbon Campaign against HTML mail & news   X


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.