in reply to Re: Re: Re: system call in an CGI perl script, fails on Windows XP
in thread system call in an CGI perl script, fails on Windows XP

I just tried to use the full path AND with 'perl -wT' and it works. So effectively, it looks are the system is not inherting the parent's properties for some reason.

I am just confused with this difference in behaviour between in XP & Win2K, than the problem itself. If this is the real problem (property inheritance), then more people would be affected than just me...
  • Comment on Re: Re: Re: Re: system call in an CGI perl script, fails on Windows XP

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: system call in an CGI perl script, fails on Windows XP
by Grygonos (Chaplain) on Sep 28, 2003 at 03:34 UTC

    I would reccoment using the start command like this

    my $rv = system("cmd /c START C:\\YourPath\\Here\\t.pl"); Then just make sure the registry associates the file type with the perl interpreter.

    To set your file association in WindowsXP
    1. Open Windows Explorer
    2. Choose Tools->Folder Options
    3. Select the File Types tab
    4. Check for an entry with Extension PL
    5. if(exists($entry)) { $double_check_association = 1; } else(!exists($entry)) { $add_new_entry = 1; }
    6. To add a new association click the "New" button, Enter the extension and then choose the program that should open it