[comp.lang.perl] system

stanley@phoenix.com (John Stanley) (04/24/91)

   Hey all. I am having a problem with the MS-DOS version of perl. The 
version is:

   This is perl, version 3.0
   $Header: perly.c,v 3.0.1.9 90/11/10 01:53:26 lwall Locked $
   Patch level: 41                                             

The problem is that when I use the system() function, at some time later
the program crashes and locks the system (a reboot is needed). I have
seen this both with and without exe swapping. The lockup occurs after
the system() has completed, and after the perl program has run for a few
more lines. I have set EXESWAP to ".off" (and have gotten a memory map
that shows that perl is still in memory), and with it set to a ramdisk
(with the directory listing that shows the swap file there) with the same
results.

   Is this a known problem, and is there a workaround? 

   Also, I am looking for the library described in the Nutshell book.
Would someone provide an ftp site that has this (and the directory it
is in), please?

harrison@csl.dl.nec.com (Mark Harrison) (06/01/91)

How can I make the system() call use [kc]shell instead of /bin/sh?
I am currently doing system("ksh -c \"cmd\"");

Thanks in advance,
Mark.
-- 
Mark Harrison           | Note: harrison@ssd.dl.nec.com and
harrison@csl.dl.nec.com | necssd!harrison are not operating at
(214)518-5050           | present.  Please forward mail through the
                        | above address.  Sorry for the inconvenience.

tchrist@convex.COM (Tom Christiansen) (06/01/91)

From the keyboard of harrison@csl.dl.nec.com (Mark Harrison):
:How can I make the system() call use [kc]shell instead of /bin/sh?
:I am currently doing system("ksh -c \"cmd\"");

That's really all you can do.  You do *NOT* want it to use csh,
because then you'd lose a lot of functionality, and you can't be
sure it'll be installed either.

--tom
--
Tom Christiansen		tchrist@convex.com	convex!tchrist
		"So much mail, so little time."