From: Dale & Lora Marshall <[EMAIL PROTECTED]>
> I have a Perl-Tk program that I'm trying to get fork-exec working in.
> The code snippet is:
>
> sub create_show() {
> unless (fork) {
> exec ('create_show.exe $showdate') or print STDERR "couldn't
> exec
> create_show.exe: $!";
> }
> }
>
> The snippet is called from a pushputton. What I want to happen is
> have a main window that contains buttons that, when clicked, run other
> programs. I'm compiling these programs with Perl2Exe 5.03.
>
> Whenever I run this code, the program "dumps core" and exits. I've
> seen references to Win32::Process::Create but I haven't played with
> that yet. I'd like my code to be portable to Windows and Linux, so I'd
> like to avoid any Windows-specific stuff.
So why don't you simply use system() ?
Jenda
=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
--- me
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl