2.29. kill.bas

[<<<] [>>>]

This script tests the command kill. To execute it get some harmless process running (like vi or notepad) and get the pid of it using the command ps on UNIX or the task manager under NT kill the process using this program.

After executing the program check that the process is gone.

Example kill.bas :

print "give me a pid to kill!"
line input pid
if kill(pid) then
  print "success\n"
  print "cannot kill\n"

[<<<] [>>>]