Perl system() function works sometimes.

Reini Urban rurban@x-ray.at
Mon Jan 30 23:02:00 GMT 2012


On Mon, Jan 30, 2012 at 11:45 AM, Gary E Barnes wrote:
> I have tried perlrebase and also rebaseall.  I tried deleting cygwin from
> the machine and reinstalling from scratch.
> None of that fixes the problem.  If it is some sort of rebase problem then
> the usual tools don't fix it.
>
> And from what you said about calling execve when there are no interesting
> shell redirections, it would appear
> that perl calling system() simply doesn't work at all for some reason.

Yes, it failed with a rebaseall-related fork failure because you used system
with the system sh-wrapper. If you call it as list you wouldn't see this error.

Yes, Calling perl within perl within perl will lead to memory conflicts.
This a known problem we will have to live for a while unfortunately.
There's not enough DLL space. Even less the more apps are loaded.
Yes, this is fragile.

That's why I recommended not to use system with strings.
-- 
Reini Urban
http://cpanel.net/   http://www.perl-compiler.org/

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list