Discussion:
Error running a system call to perl using --noscreen switch
(too old to reply)
Gar
2006-11-23 15:00:56 UTC
Permalink
Hi,

I've a modified perl script that automates the management of user quotas
on certain volumes (it adds 50MB to the user quota when they have less
than 10MB left).
The volumes are clustered, so can reside on any of three nodes.
I've created a calling script that runs on each node nightly, that
checks the _ADMIN:volumes for volume presence before running the quota
management script.
The problem I have is, that when I try to call the quota management
script using the --noscreen switch I get the following error:-
"Error unloading killed loadable module (LIBPERL.NLM) Perl 5.8.4 -
Script Interpreter and Library".

The command run from the initial script is
# Prepare the command and arguments for system call
@args = ("perl","--noscreen","$path\\$qscript","$server","$volume");
# Run the quota management script for this volume
system(@args);

The scripts run without problems when the "--noscreen" argument is left
out - I'm just left with the unclosed perl windows.

Any suggestions much appreciated.
Regards,
Gar.
Guenter
2006-11-23 16:51:32 UTC
Permalink
Hi,
Post by Gar
Hi,
I've a modified perl script that automates the management of user quotas
on certain volumes (it adds 50MB to the user quota when they have less
than 10MB left).
The volumes are clustered, so can reside on any of three nodes.
I've created a calling script that runs on each node nightly, that
checks the _ADMIN:volumes for volume presence before running the quota
management script.
The problem I have is, that when I try to call the quota management
script using the --noscreen switch I get the following error:-
"Error unloading killed loadable module (LIBPERL.NLM) Perl 5.8.4 -
Script Interpreter and Library".
The command run from the initial script is
# Prepare the command and arguments for system call
@args = ("perl","--noscreen","$path\\$qscript","$server","$volume");
# Run the quota management script for this volume
The scripts run without problems when the "--noscreen" argument is left
out - I'm just left with the unclosed perl windows.
I would try:
@args = ("perl --noscreen","$path\\$qscript","$server","$volume");

Guenter.
Gar
2006-11-24 08:47:10 UTC
Permalink
That worked a treat Guenter.
Many Thanks,
Gar.
Post by Guenter
Hi,
Post by Gar
Hi,
I've a modified perl script that automates the management of user quotas
on certain volumes (it adds 50MB to the user quota when they have less
than 10MB left).
The volumes are clustered, so can reside on any of three nodes.
I've created a calling script that runs on each node nightly, that
checks the _ADMIN:volumes for volume presence before running the quota
management script.
The problem I have is, that when I try to call the quota management
script using the --noscreen switch I get the following error:-
"Error unloading killed loadable module (LIBPERL.NLM) Perl 5.8.4 -
Script Interpreter and Library".
The command run from the initial script is
# Prepare the command and arguments for system call
@args = ("perl","--noscreen","$path\\$qscript","$server","$volume");
# Run the quota management script for this volume
The scripts run without problems when the "--noscreen" argument is left
out - I'm just left with the unclosed perl windows.
@args = ("perl --noscreen","$path\\$qscript","$server","$volume");
Guenter.
Loading...