Help for this page

Select Code to Download


  1. 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");
    }
    
  2. 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();
    
  3. or download this
    sleep(10)
    print "something";
    
  4. or download this
    sleep(5);
    print "something";
    sleep(5);
    
  5. or download this
    print "something";
    sleep(10);