in reply to [Resolved] Call to ulimit in perl's system() causes unexplainable behavior

I don't think this has anything to do with Perl.

All of your I/O comes through the shell. You are basically running a shell script to generate the file. There are some things I would look at for possible differences though:

  1. Which shell is invoked by default? Is it the same shell?
  2. Encoding differences. Is the same encoding happening? Do the files look the same in a hex editor?
  3. iconv might show something interesting.

However what happens beyond within system call is OS dependent, not Perl dependent. There is really very little room for this to be solved as a Perl issue. What I would recommend doing is put the commands in a shell script and invoke that. If it works in the shell script but not from Perl, I would then start checking environment variables, etc.

  • Comment on Re: Call to ulimit in perl's system() causes unexplainable behavior

Replies are listed 'Best First'.
Re^2: Call to ulimit in perl's system() causes unexplainable behavior
by chengiz5 (Novice) on Mar 04, 2014 at 15:42 UTC
    You are right, see my other reply above. Thank you!

      Though you marked this issue as resolved solved it might be worth taking a look at POSIX::1003::Limit.

      Update: fixed wrong adjective.

      Regards, Karl

      «The Crux of the Biscuit is the Apostrophe»