- or download this
string fullPath = @"Z:\path\test.pl";
string arguments = arg1 + arg 2
Process myProcess = Process.Start(fullPath, arguments);
...
myProcess.Kill();
throw new Exception("Timed out while running process");
}
- or download this
ProcessStartInfo perlStart = new ProcessStartInfo(@C:\Strawberry\perl\
+bin\perl.exe");
perlStart.Arguments = "Z:\path\test.pl" + argument1 + argument2;
perlStart.UseShellExecute = false;
...
perl.StartInfo = perlStart;
perl.Start();
perl.WaitForExit();
- or download this
sleep(10)
print "something";
- or download this
sleep(5);
print "something";
sleep(5);
- or download this
print "something";
sleep(10);