Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by einhverfr (Monk)
on Mar 04, 2014 at 15:26 UTC ( #1076894=note: print w/ replies, xml ) Need Help??


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
Re^2: Call to ulimit in perl's system() causes unexplainable behavior
by chengiz5 (Initiate) 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»

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1076894]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2014-09-19 16:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (143 votes), past polls