i am writing script(ksh) in which i want to check return status(success/ failure) of kill command. when i try to redirect it into file through scripting it doesn't work but if i try it on terminal it works.
kill -9 Processid > Temp
isn't it strange
when i tried to redirct standard error it works but still give standard output (success message) on terminal
kill -9 Processid 2> Temp
i also try to redirect both error and standard output in to same file but it also not works :-(
kill -9 Processid > Temp 2>&1