my $k = 0; while($k < 3){ system("gnome-terminal -e 'perl myscript.pl'"); }