get args from command line do some checking for validity of the arguments (ie, is it a valid process number, does the user own the process, are the flags/signals valid) open log file write info about user, processid, process name, whatever close log file system("kill",$args,$processid)