cored has asked for the wisdom of the Perl Monks concerning the following question:
I want to know if exist a module or something that make this in a easy way, i search on cpan.org but i did not find nothing. There's more than one way to do it :)#!/usr/bin/perl -w use strict; my $msg = "Please turn off your machines"; my $cont = 1; while($cont<=10){ system("echo $msg | smbclient -M mach-${cont}"); $cont=$cont+1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sending multiples network messages
by robartes (Priest) on Oct 10, 2002 at 21:35 UTC | |
|
Re: Sending multiples network messages
by talexb (Chancellor) on Oct 10, 2002 at 21:46 UTC |