To accept stnin use something like this:

chomp ($var = <STDIN>);
If you want to use a resource kit command then remember that perl needs to 
know how to interpret the command and not think its part of its own 
function, so enclose the resource kit command in tics like so:
`reg query "HKLM\software\somewhere\somekey=" \\\\ahostname`;

Hope this helps...


>From: "Bishop, Peter" <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: Resourch kit commands...
>Date: Wed, 13 Feb 2002 11:24:25 -0500
>
>Hello all,
>
>I am trying to create a script that will accept a server name via <STDIN>
>and and run commands from the Win2k resource kit. My question is how do I
>code these commands? Is there a function for srvinfo, for example?
>
>Thanks in advance!
>Peter Bishop
>--------------------------
>Sent from my BlackBerry Wireless Handheld (www.BlackBerry.net)
>
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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

Reply via email to