Hi,
I've a script which kills all process, but i need a script shell script(sh), where it'll kill process on that particular terminal. below is example
TY=`tty`
for P in $TY
do
`kill -9 $P 2>/dev/null`;
done
echo "test process killed"
break
fi
done
when i run this, i'm getting ERROR: TTY not found. this is an shell script which is running in background, and perl is calling this shell script.
say i want to kill process name sh, of that particular terminal. how to do this.
regards,
asak