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



Or run it as a batch job: SBMJOB CMD(QSH CMD('ls -al /wintouch/wtfoobar'))

And being a UNIXish shell, it supports redirection so you could output the directory listing to a text file: QSH CMD('ls -al /wintouch/wtfoobar >/dirlisting.txt') You could probably even redirect to a PFM but I haven't ever tried it: >/qsys.lib/mylib.lib/myfile.file/mymbr.mbr or somesuch.

--
John A. Jones, CISSP
Sr. Analyst, Global Information Security
Jones Lang LaSalle, Inc.
Voice: +1.630-455.2787
FAX: +1.312.601.1782
Email: john.jones@xxxxxxxxxx


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of James Lampert
Sent: Friday, December 19, 2008 12:34 PM
To: Midrange Systems Technical Discussion
Subject: Re: Convenient way to list contents and space consumption for an IFS directory?

What I sent the colleague whose customer wanted it:

The grand total here also includes other things, like the settings and
workflowscripts subdirectories (but not, so far as I can tell, their
contents), but it's quick and easy.

From an OS/400 command line, type
QSH
and hit <enter>. This will put you into QShell.

Then type, assuming your environment is WTFOOBAR,
ls -al /wintouch/wtfoobar
and hit <enter>. This will give you a directory listing with sizes, and
with a grand total at the top (it could be hundreds or even tens of
thousands of lines; they might need to press F17 to get back to the top).

To exit QShell, just press <F3>


******************************

Even easier: From an OS/400 command line, type:
QSH CMD('LS -AL /WINTOUCH/WTFOOBAR')
This will run the command (it could take several minutes to complete) and report
the results (<F17> for top and <F18> for bottom work here, too). Then
just hit
<enter> to return to a command line



--
James H. H. Lampert
Touchtone Corporation

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



This email is for the use of the intended recipient(s) only. If you have
received this email in error, please notify the sender immediately and then
delete it. If you are not the intended recipient, you must not keep, use,
disclose, copy or distribute this email without the author's prior
permission. We have taken precautions to minimize the risk of transmitting
software viruses, but we advise you to carry out your own virus checks on
any attachment to this message. We cannot accept liability for any loss
or damage caused by software viruses. The information contained in this
communication may be confidential and may be subject to the attorney-client
privilege. If you are the intended recipient and you do not wish to receive
similar electronic messages from us in the future then please respond to the
sender to this effect.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.