Re: Perl system() function works sometimes.

2012-01-30 Thread Reini Urban
On Mon, Jan 30, 2012 at 7:47 PM, Gary E Barnes wrote: > I'm confused about what you are talking about.  In particular the "perl > within perl" part.  I have a perl script.  It puts together shell commands > and tries to run them using the system() call.  There is no perl calling > perl so far as I

Re: Perl system() function works sometimes.

2012-01-30 Thread Gary E Barnes
I'm confused about what you are talking about. In particular the "perl within perl" part. I have a perl script. It puts together shell commands and tries to run them using the system() call. There is no perl calling perl so far as I know. The script has worked fine for about two years on t

Re: Perl system() function works sometimes.

2012-01-30 Thread Reini Urban
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 w

Re: Perl system() function works sometimes.

2012-01-28 Thread Reini Urban
On Fri, Jan 27, 2012 at 3:50 PM, Gary E. Barnes wrote: > perl -e 'system ("/bin/ls -l /tmp");'                   # still works > perl -e 'system ("/bin/ls -l /tmp > /tmp/xxx");'        # no longer works > perl -e 'system ("(/bin/ls -l /tmp>");'                 # no longer works > > Perl's system()

Re: Perl system() function works sometimes.

2012-01-27 Thread lookingupward
So it acts up when it tries to write to tmp directory. Does it still have permission to write to tmp? Is is possible your space is getting filled up? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.c

Perl system() function works sometimes.

2012-01-27 Thread Gary E. Barnes
perl -e 'system ("/bin/ls -l /tmp");' # still works perl -e 'system ("/bin/ls -l /tmp > /tmp/xxx");'# no longer works perl -e 'system ("(/bin/ls -l /tmp>");' # no longer works Perl's system() function is just the Unix system() call. The string argument is