in reply to Re: how to loop
in thread how to loop
while (1) { # Get a random background from the array my $new = $backs[int(rand(@backs))]; # Set the background to something new system($command . ' --type=string -s '. $gconf_item . ' \'' . $new . + '\''); last if ($mode ne "running"); sleep($interval*60); } # end-while
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to loop
by cbrandtbuffalo (Deacon) on Feb 21, 2007 at 15:00 UTC |