status = execlp("uzip4os2.exe", "c:\\in\\prot\\", "-o -j -q", zipFile);

status = execlp("uzip4os2.exe", "c:\\in\\prot\\", "-o -j -q", zipFile);

Post by Folkert van Heusde » Tue, 18 Feb 1997 04:00:00



What is wrong with:

status = execlp("uzip4os2.exe", "c:\\in\\prot\\", "-o -j -q", zipFile);

that it makes my PC crash when executed?

With this call, I execute an unzipper for os/2. As argv[0] I give 'm some
pathname, and the other two are parameters (filename and some switches).

Does anyone know what's wrong?

 
 
 

status = execlp("uzip4os2.exe", "c:\\in\\prot\\", "-o -j -q", zipFile);

Post by Paul Spe » Tue, 18 Feb 1997 04:00:00



: What is wrong with:

: status = execlp("uzip4os2.exe", "c:\\in\\prot\\", "-o -j -q", zipFile);

: that it makes my PC crash when executed?

: With this call, I execute an unzipper for os/2. As argv[0] I give 'm some
: pathname, and the other two are parameters (filename and some switches).

: Does anyone know what's wrong?

        First of all, you need to add one NULL parameter at the end that
will let the exelp function know when to stop reading arguments.  Another
thing is that the first argument passed to unzip should be unzip, ie:

execlp("unzip4os2.exe", "unzip4os2.exe", "c:\\in\\prot\\",
        "-o -j -q", zipFile, NULL);

        Hope it helps,
        -Keys

------------------------------------------------------------------------
!!!! Everyone who owns a computer and plans to still be using it in
     the next five years should really visit this URL I found while
     surfing.     http://www.vcnet.com/bms/
     It's the "Boycott Microsoft" page.  Read all of the beginning
     articles.  Tell your friends.  Read the stuff even if you never
     intend to boycott MS products.  It's kind of scary.
------------------------------------------------------------------------

 
 
 

1. Filename "lpt7", "com1" and "nul"

Some users manage to create files with the names: "lpt7", "com1" or
"nul".
Does anybody know how I can delete these files?

The OS/2 command prompt gives an error if I try to delete or rename
these files.
I can not use FAT-utilities like Norton because the filesystem is NTFS.

---------------------------------------------------------------------
Humphrey Sloesen,   phone:+31-416-388437,          fax:+31-416-373162
Computer Centre, LIPS B.V., P.O.BOX 6, 5150BB DRUNEN, The Netherlands

---------------------------------------------------------------------

2. Undo POSIX semaphore

3. Lost "Shutdown", "Lockup" & "System Setup" Options

4. test - could someone please reply

5. Mozilla v1.1..."Plug-ins?"....."Anyone?"

6. Remote WS ->SBS->Local WS ????

7. No One Believes Serenity's "Boob" & "LoonyToony"

8. THE HISTORY OF THE QNX (ORIGIN)

9. IBM - Match for Wintel or merely "Big & Blue" - read "gonads".

10. "Open" vs. "Closed" (was Re: Netscape: FREE!)

11. Mac "find" performs far better than Unix O(n^2) "find"

12. "ENHANCED" & "USING"?

13. OS/2 "2.2" Should Be "3.0"...More Reasons