Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Access Win "performance counter" from unix?

by t0mas (Priest)
on Aug 03, 2003 at 00:18 UTC ( #280367=note: print w/replies, xml ) Need Help??

in reply to Access Win "performance counter" from unix?

If you feel comfortable with sending unencrypted passwords across your network, then you can start the telnet server on a win2000 box, and if you disable NTLM authentication (set NTLM to 0 with the tlntadmn.exe program) you can log in on it and run programs from a *nix terminal.

One oddity, you need to print to STDOUT or STDERR to get any teminal output if you play with perl -e. perl -e "print yoo" won't work but perl -e "print STDOUT yoo" will.

Create a script on the win2000 machine and run it from the terminal, capture the output and do whatever with it.

Note: I don't advocate using telnet because you usually want your session encrypted and use ssh or something. But if you have a specific situation that makes it OK, then this solution will probably work.

/brother t0mas
  • Comment on Re: Access Win "performance counter" from unix?

Replies are listed 'Best First'.
Re: Re: Access Win "performance counter" from unix?
by Anonymous Monk on Aug 03, 2003 at 08:53 UTC
    At least with cygwin you also have ssh when you have security concerns. BTW I did this telnet stuff alot and it works great. Murat
Re: Re: Access Win "performance counter" from unix?
by zakzebrowski (Curate) on Aug 03, 2003 at 16:15 UTC
    Net::Telnet is your friend for working with telnet. It's easily scriptable and most systems have telnet support. This comes in handy when I have to use machines which I'm not sysadmin on, but I have a need to use, and the machine is on a private lan. (If a clever hacker can gain access to the lan, they can have access to my machine.)

    Pluralitas non est ponenda sine neccesitate - mysql's philosphy

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://280367]
[Corion]: Discipulus: If you want to rewrite the SVG, then yes, something like XML::Twig should be enough. I would try to not modify the SVG but only modify the display, but so far I haven't convinced IE to change the style...
Corion gives up
[Discipulus]: ah! so you mean if i need a static image i can use Twig, if on the fly better css selector and mody attrs (jquery?), rigth?
[LanX]: not sure what you guys are taking about, but a DOM manipulation in JS shouldn't be difficult
[Corion]: Discipulus: Yeah, that's what I would try (but so far, I can't even change the colors manually in the SVG, which is why I gave up ;) )
Discipulus bad sign..
[Discipulus]: italian doc says to modify somehow the initial SVG before using it with D3.js
[Discipulus]: LanX the fact is that my js ability is even poorer than my Perl one..
[LanX]: oh its negative? ;P

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2017-03-23 09:45 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (285 votes). Check out past polls.