perl out of memory?

From: Mike (mikee_at_mikee.ath.cx)
Date: 05/05/04


Date: Wed, 05 May 2004 18:28:04 -0000

Given the script (x.pl):

#!/usr/bin/perl

use Net::FTP;

1;

When the command is executed as root 'perl -wc x.pl' all
works well. When the same command is executed as a user
the errors below are given:

$ perl -wc x.pl
Out of memory!
Callback called exit at x.pl line 3.
END failed--call queue aborted at x.pl line 17.
Callback called exit at x.pl line 17.
BEGIN failed--compilation aborted at x.pl line 3.

I've changed the limits for the user, logged out and back
in, and still get the same result. What else might be
constraining the user's account such that the simple
script above can't even pass a '-wc'?

Mike



Relevant Pages

  • Obtaining complete Unix command line that evoked script as string
    ... If there is a more appropriate list for this, let me know; the other perl lists I've seen seem to specialised for this. ... Note this is not just the arguments of the call to the script, but everything including pipes and redirects, etc., e.g. ... Ideally the perl interpreter would grab the complete command line as its evoked and I'd access this via a variable. ...
    (perl.beginners)
  • Re: [PATCH] Replace scripts/headers_install.pl with a shell script.
    ... Remove perl from make headers_install by replacing a perl script (doing ... Else $i will be evaluated at the time the trap command is used, not at the time we exit, and you need to protect the filenames using "" everywhere. ... "arch is used to force a reinstallation when the arch hanges because kbuild then detect a command line change." ...
    (Linux-Kernel)
  • Re: Displaying a users group memberships
    ... The user's username is passed to the script via the command line and captured with ARGV. ... I want to determine the group memberships (much like executing `groups` from the command line) and run those through a loop for processing. ... I'm very new to Perl so maybe I'm just looking for the wrong terms or something. ... The format of the command is simple: `test.pl username`, where username is a real username on the system in question. ...
    (perl.beginners)
  • Re: How to time out a command
    ... > I have a ksh script that calls another utility (command A). ... I once made the following script to do exactly that. ... # Runs a command and kills it, if necessary, after a given timeout. ... # 0<c<127 - job exited with this exit code ...
    (comp.unix.shell)
  • Re: [opensuse] Lazarus and free pascal need ELF
    ... In a bourne shell interpreter, which is what you are in while you are logged in and sitting at a command prompt, the syntax "dot space filename" does not execute the file, it sources the file. ... It has the effect that your current shell instance ends up directly executing the commands, which may look and smell like the normal way a script or program is executed, but it's in fact quite different. ... The simplest example of why this is "wrong" even though it seems to "work for scripts" would be to look at any typical script that has an exit command. ...
    (SuSE)