SCOUG Logo


Next Meeting: Sat, TBD
Meeting Directions


Be a Member
Join SCOUG

Navigation:


Help with Searching

20 Most Recent Documents
Search Archives
Index by date, title, author, category.


Features:

Mr. Know-It-All
Ink
Download!










SCOUG:

Home

Email Lists

SIGs (Internet, General Interest, Programming, Network, more..)

Online Chats

Business

Past Presentations

Credits

Submissions

Contact SCOUG

Copyright SCOUG



warp expowest
Pictures from Sept. 1999

The views expressed in articles on this site are those of their authors.

warptech
SCOUG was there!


Copyright 1998-2024, Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.

The Southern California OS/2 User Group
USA

SCOUG-Programming Mailing List Archives

Return to [ 06 | April | 2005 ]

<< Previous Message <<


Date: Wed, 6 Apr 2005 12:46:56 PDT7
From: "Steven Levine" <steve53@earthlink.net >
Reply-To: scoug-programming@scoug.com
To: scoug-programming@scoug.com
Subject: SCOUG-Programming: SYS0008 SYS1092 in .CMD file ?

In <4253AE67.E43@peterskye.com>, on 04/06/05
at 02:40 AM, Peter Skye said:

>This two-line command file works on the first loop but causes a SYS0008
>error on the second loop.

Not really.

>I am using CMD.EXE on Warp 4 FP 10.

So we have heard.

>If I remove the "| sort" pipe from the end of the line there is no error,
>even though the line still contains the "| find" pipe.

>Why do I get this error on the second loop? How do I fix it? _____

Use something other than the braindead cmd.exe which runs out of resources
at the slightest provocation.

You might want to look at your script logic too. It looks a bit sick to
me. I think you really want this to be:

for %%f in (F G) do ( echo %%f: BASEDEV ---- & find /i "basedev"
<%%f:\config.sys ) | find /v /i "rem " | sort

If you read the command reference carefully, you will notice that for only
allows a single command thus the parens.

I changed the find to specify the drive letter because I assume you want
to scan multiple config.sys files rather than just the one that happens to
be in the current directory.

>[H:\cmd]help sys0008

>SYS0008: There is not enough memory available to process this command.
>All available memory is in use.

>EXPLANATION: If segment swapping is active, the swap file may be full or
>an input/output (I/O) error may have occurred on the auxiliary storage
>device that contains the swap file.

The real explanation is that cmd.exe is braindead.

>[H:\cmd]help sys1092

>SYS1092: The handle could not be duplicated during a pipe operation.

>EXPLANATION: Too many handles prevent handle duplication during a pipe
>operation.

The real explanation is that cmd.exe is braindead.

The corrected script runs just fine under 4os2. Your original also runs
without errors if run from the root, but the results are not what I think
you want.

Regards,

Steven

--
----------------------------------------------------------------------
"Steven Levine" MR2/ICE 2.67 #10183 Warp4.something/14.100c_W4
www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST)
----------------------------------------------------------------------

=====================================================

To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".

For problems, contact the list owner at
"postmaster@scoug.com".

=====================================================


<< Previous Message <<

Return to [ 06 | April | 2005 ]



The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA

Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.