Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?


by marlboroguy58 (Novice)
on Mar 30, 2007 at 11:30 UTC ( #607448=perlquestion: print w/replies, xml ) Need Help??
marlboroguy58 has asked for the wisdom of the Perl Monks concerning the following question:

hi, i have a script which extracts data from a flat file, formats it and populates that data into an Excel sheet. I noticed that if the flat file is small, the script runs and exits with code 0, but if there is a lot of data the same script populates some part of the data and exits with code 255. i m not a perl expert, but think that the perl.exe is losing the CPU time and hence exiting...not sure.. i m using windows XP professional. once i run the script there will be 2 processes running perl.exe EXCEL.exe as soon i run the script i set the priority of the perl.exe process to "real time", the script runs succesfully, but with the default priority it exits with code 255. how do i prevent the script from coming there a way i can set the priority of the script from within the script..

Replies are listed 'Best First'.
by roboticus (Chancellor) on Mar 30, 2007 at 11:53 UTC
      Reviewing this, I suggest a couple of minor modifications to meet the OP requirements:
      start /realtime perl


      Free your mind


        Ha, ha! That's quite correct++. When I read the original post (OP), it made me start the google search because I have a similar problem. So my response answers my problem rather than the question in the OP.

        Thanks for the catch, Moron.


by sgifford (Prior) on Mar 30, 2007 at 15:14 UTC
    The priority of the process shouldn't cause it to exit, unless there's some time limit in the program. To figure out why it's existing, try running it from a command shell, and see if it prints a helpful error message before exiting. If that doesn't help, try adding error messages in the various places that it exits, adding debugging messages in the code, and/or running it under the debugger.

    Good luck!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://607448]
Approved by wfsp
[msh210]: doesn't append anything.
[msh210]: It should say "If the last nonempty element of LIST" or "If the string thus to be printed does not end in a newline""
[msh210]: Am I wrong?
[shmem]: no. You're right.
[msh210]: About time... last time I was right was... I don't even remember when.
[shmem]: perl -e 'warn "test$/", ^@^ '
[Eily]: well, at least it's right about warn doing the same thing as die :)
[shmem]: same with undef as last element
[msh210]: oh, good point. It's the best kind of correct
[shmem]: msh210: but I'd not call it a lie outright. That's when you do know the truth.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (16)
As of 2017-04-24 12:43 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (439 votes). Check out past polls.