[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Long cmd lines give "Out of Memory!" error (+crash)



> Has anybody else been getting an "Out of memory!" message (and crash) from
> MacPerl 5.20r4 (MacOS 8.6) when they try to run a script with a long command
> line?

I have been able to confirm that there is a limit to the amount of text
passable to MacPerl::Ask. If it is too long, MacPerl starts outputting
memory space until it tromps on something critical that causes a fatal
freeze (on my machine).

> I would prefer to keep my original path names, avoid a mess of aliases, and
> I'm not the author of the script.
> 
> Does anybody have recommendations on how to resolve this dilemna?

You could use StandardFile to get the paths and concatenate within the
script or use <> to get the whole command line text from the terminal
window. There are many solutions, depending on the nature of the flexibility
of input and interface.

-K

"To argue with a man who has renounced his reason is like giving medicine to
the dead."
    - Thomas Paine


# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org