Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Trouble Using "Top" Within Perl

by kschwab (Priest)
on Sep 14, 2002 at 15:13 UTC ( #197871=note: print w/replies, xml ) Need Help??


in reply to Trouble Using "Top" Within Perl

You could check the $? variable after the backtick call. My best guess is that rsh is in /usr/sbin, which isn't in the PATH environment variable in your CGI environment.

Another idea would be to capture stderr:

@top=`rsh $node top -n 1 -b 2>&1`;
Then you might catch what the shell and/or rsh is unhappy about.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://197871]
help
Chatterbox?
[mark4]: Did activestate use to inclued teh perl packager, pp.exe in the standard distribution? I can't fine "pp.exe" anywhare.
[marto]: no
[marto]: that is to say, to the best of my knowledge, they never did.
[marto]: they have a commercial product called perlapp
[mark4]: Do you h=know how I can get pp.exe? Is there a module I can install that includes this?
[marto]: I always found Strawberry Perl on windows to be a much better environment, made life much easier

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2018-01-19 14:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (218 votes). Check out past polls.

    Notices?