indypung
asked on
kill sessions/processes
hi. i have a nightly job that runs and spawns several unix processes. each process has the same user as the owner. during development, sometimes i get many sessions hung at one time. then i have to go through and kill them all one by one by saying kill <pid>. is there a way that i can issue a kill command that will kill all sessions owned by the userid that i'm currently logged in as? this is hp-ux. thanks.
bp
bp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
does HP-UX have the 'pidof' command ?
if so you can also use
kill `pidof progname`
as in if you want to kill the opera browser
kill `pidof opera`
if so you can also use
kill `pidof progname`
as in if you want to kill the opera browser
kill `pidof opera`
su - <user> -c kill -1