How can this be done so that for each system date timestamp I get the output of both the above commands? Thanks, Xhings&colstat; sub colstat { my $i=0; while($i<=10){ my $psout = '/my/long/path/memOut.txt'; my $vmstatOut = '/my/long/path/vmstatOut.txt'; system("date >> $vmstatOut"); system("vmstat 2 2 >> $vmstatOut"); system("date >> $psout"); system("ps auxw | grep -v grep >> $psout"); $i++; } }
In reply to parallel command execution by Xhings
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |