Discussion:
address space question
(too old to reply)
Frank ramke
2006-10-23 13:58:53 UTC
Permalink
I need to load an nlm from within a perl script that requires to be loaded
in the OS address space.

# hello.pl: very simple sample perl script
`smdr`;
print "Howdy, world!\n";

SMDR is unresolved because it requires to be loaded in the OS address space.
Changing the load command to
# hello.pl: very simple sample perl script
system "SMDR";
print "Howdy, world!\n";

works, but as discussed here in the past, is not good because the execution
returns immediately.
Any ideas?

Thanks,
Frank Ramke
Guenter
2006-10-23 16:55:31 UTC
Permalink
Hi Frank,
Post by Frank ramke
I need to load an nlm from within a perl script that requires to be
loaded in the OS address space.
# hello.pl: very simple sample perl script
`smdr`;
print "Howdy, world!\n";
SMDR is unresolved because it requires to be loaded in the OS address
space. Changing the load command to
# hello.pl: very simple sample perl script
system "SMDR";
print "Howdy, world!\n";
works, but as discussed here in the past, is not good because the
execution returns immediately.
Any ideas?
take a look at this old script:
http://www.gknw.net/nwperl/perlucx/apache.txt
it shows how you can check if a NLM is loaded, and if not then load with
system() and wait until loaded...
I think there's also a Run() or Load() method, but I dont know if that loads
into OS, or also protected - you have to check...
The docu for the UCS/UCX components can be found with the NScript docs:
http://developer.novell.com/documentation/nscript/index.html
and here the Load method:
http://developer.novell.com/documentation/nscript/nsc3_enu/data/hrc3cy8b.html

G.

Continue reading on narkive:
Loading...