Discussion:
open remote NW65 file
(too old to reply)
kbarnes
2005-10-14 12:40:35 UTC
Permalink
I'm trying to open the _admin ... command file from one NW65 server to
another.

The questions are:
is it possible to use open to achieve this?
if so how do you address the remote server i.e. is it unc style.

wil ucs help in any of this?

If the file cannot be opened what is the best way to launch a listening
script on the remote server.

Thanks

kerry
kbarnes
2005-10-18 08:05:25 UTC
Permalink
Further to this a code snippet that doesn't work is below.
use perl2ucs;

$nds=Perl2UCS->new("UCX:NWDir")or die "nwdir $!";

$nds->Login(".admin.hertscc","password") or die "username password $!";


print($nds->FullName);
print($nds->loginname);

$fileobject=Perl2UCS->new("UCX:FIO")or die "ucx class object creation
failed:$!";
$fh=$fileobject->open("\\nwc-apsnode02\_ADMIN:\Manage_NSS\manage.cmd","r+")or
die "ucx file object creation failed:$!";


the output of the prints are:

NDS:\HCCTREE[ROOT]
admin.hertscc

the context can be changer via fullname but this doens't make any
difference.

then the open will fail with file object creation failed.

Can anybody explain why the open fails.

Thanks

Kerry Barnes
Post by kbarnes
I'm trying to open the _admin ... command file from one NW65 server to
another.
is it possible to use open to achieve this?
if so how do you address the remote server i.e. is it unc style.
wil ucs help in any of this?
If the file cannot be opened what is the best way to launch a listening
script on the remote server.
Thanks
kerry
fred
2005-10-28 17:27:31 UTC
Permalink
After a moment of desperation I tried using the short name version of
manage_nss (manage~1) and lo and behold it worked.
Post by kbarnes
Further to this a code snippet that doesn't work is below.
use perl2ucs;
$nds=Perl2UCS->new("UCX:NWDir")or die "nwdir $!";
$nds->Login(".admin.hertscc","password") or die "username password $!";
print($nds->FullName);
print($nds->loginname);
$fileobject=Perl2UCS->new("UCX:FIO")or die "ucx class object creation
failed:$!";
$fh=$fileobject->open("\\nwc-apsnode02\_ADMIN:\Manage_NSS\manage.cmd","r+")or
die "ucx file object creation failed:$!";
NDS:\HCCTREE[ROOT]
admin.hertscc
the context can be changer via fullname but this doens't make any
difference.
then the open will fail with file object creation failed.
Can anybody explain why the open fails.
Thanks
Kerry Barnes
Post by kbarnes
I'm trying to open the _admin ... command file from one NW65 server to
another.
is it possible to use open to achieve this?
if so how do you address the remote server i.e. is it unc style.
wil ucs help in any of this?
If the file cannot be opened what is the best way to launch a listening
script on the remote server.
Thanks
kerry
Loading...