On Tue, 16 Jul 2002 17:33:38 -0400
"Leonard W. Miller" <[EMAIL PROTECTED]> wrote:
> Can somebody tell my why this doesn't work?
>
> #!/usr/bin/perl
>
> for($x = 1; $x < 255; $x++)
> {
> snmpwalk 172.17.16.$x public;
> }
>
> Thanks
I'm just learning perl myself, but, in order to make a system call in
perl, you need to either do: 1. system("snmpwalk 172.17.16.$x public");
or 2. $result = `snmpwalk 172.17.16.$x public`;
Those are back ticks, not quotes by the way. $result is just the exit
value of the program.
Bill
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com