Is there any easy way to use the script syntax below with "Threads" to create a multithreaded application. Very simply I want to this entire block to be run with each ARGV specified at the command line simultaneously.
--- You must not fight too often with one enemy, or you will teach him all your tricks of war.
Code:
#!/usr/bin/perl
@filers = @ARGV;
if( @ARGV < 1)
{
print "usage: ./filersetup.pl filerIP-1 filerIP-2 ... filerIP-n\n";
exit 0;
}
foreach $filer (@filers) {
&aggr_create;
&license_add;
&rep_throttle;
&opts_enable;
&vol_create;
&vol_options;
&exports
}
--- You must not fight too often with one enemy, or you will teach him all your tricks of war.