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



Joel,

The QShell commands all write their output to STDOUT unless you specifically 
pipe the output somewhere else (like a file). On Unix systems when you don't 
care about the output, there's a directory called /dev/null that is usually 
used as the target of the pipe. I just looked at one of our systems and it too 
has a directory called /dev/null. You should be able to pipe the output of a 
command to this and the results just go away.

Some older versions of OS/400 had this directory but it wasn't automatically 
cleared. We're on V5R1 and it seems to work the same as a Unix box now.

Matt

-----Original Message-----
From: Joel Cochran [mailto:jrc@xxxxxxxxxx]
Sent: Wednesday, September 03, 2003 2:50 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: QzshSystem API


Buck wrote:

> You don't need QShell in order to create a directory.  You can use the
> OS/400 command:
> MKDIR '/buck/x'.

True enough, I realize, but I then need to 'cp -r /olddirectory
/newdirectory', something for which I have found no native command.

> If you must use QSH for some reason or another, try the CMD parameter:
> QSH CMD('mkdir /buck/x').

BTDT...

> If you do something that creates standard output, re-direct it to a file and
> you won't get the 'close this window' prompt:
> ovrdbf stdout qtemp/x
> QSH CMD('mkdir /buck/x; ls -al /buck; rmdir /buck/x')
> dsppfm qtemp/x

Unfortunately I'm not creating stdout, I'm copying directory contents. 
I'm not sure overriding stdout would help me in this case.

> Hope some of this was helpful.
>   --buck

I appreciate the input, just not sure it will get me where I need to
be.  And naturally, at this point it is a matter of pride to figure out
how to make the API work ;-)

Thanks,

Joel
http://www.rpgnext.com


_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.