|
Thanks Vidyadhar,
It is giving error, saying no match for if.....I tried by putting fi...did not work....also it is not any file in which I will have TIME and TTY..........Actually in my shell script I will execute "ps -ef | grep test" command first and then in the second line I want to do that operation on the result set of "ps -ef | grep test" command.
I think we should check 6th (TTY) and 7th (TIME) column values. Please suggest.
|