One thing you might check is your PERL5LIB environment variable when you rsh
vs when you login.  It could be that rsh does not run your .profile and
therefore does not set up your environment variables thereby prohibiting
perl from seeing the appropriate libraries.
----- Original Message -----
From: "Nikola Janceski" <[EMAIL PROTECTED]>
To: "Beginners (E-mail)" <[EMAIL PROTECTED]>
Sent: Monday, August 19, 2002 3:42 PM
Subject: Problems with rsh command


> I have posted this to XML and no response there. so maybe it's simpler
than
> that...
>
> I have script that uses XML::Simple, which works when run via command
line:
> /yyy/TreeInfo/tmp/gather_os_info.pl
>
> but if run it via an rsh command (on the same host for now):
> /bin/rsh host1 /yyy/TreeInfo/tmp/gather_os_info.pl
>
> I get the following error:
> Can't locate object method "new" via package "XML::SAX::PurePerl" (perhaps
> you forgot to load "XML::SAX::PurePerl"?) at
> /yyy/perl-5.6.1-unix/lib/perl5/site_perl/5.6.1/XML/SAX/ParserFactory.pm
line
> 37.
>
> ** NOTE **: Specifically it fails on the XMLin() function call supplied by
> XML::Simple.
>
> Strange huh? host1 is the same host where I tested it via command line
> alone.
>
> Please I can't figure this one out for the life of me.
>
> Thanx in advance,
>
> Nikola Janceski
>
> When I am working on a problem I never think about beauty. I only think
> about how to solve the problem. But when I have finished, if the solution
is
> not beautiful, I know it is wrong.
> -- Buckminster Fuller (1895-1983)
>
>
> --------------------------------------------------------------------------
--
> --------------------
> The views and opinions expressed in this email message are the sender's
> own, and do not necessarily represent the views and opinions of Summit
> Systems Inc.
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to