----------------------------------------------------------------------
can u tell me how to grep the process acording to the above dates .
Actually i m able to create the file "dates" but its empty.............
i think some problem lies in my script in
Just execute the date command you are using and compare its output to what you are trying to match (does it have a "-" in it?).
Also, check which options you are trying to print in your date (use the command "man date").
i want to grip the process using time as 12:17:13. but this script not able to function properly,,,,,,,,,,,,,,,.this time is the strating time of that process.
the o/p of this its showing is
A useful debug method is to echo the variables (eg. echo "$a"), so you can see what they actually are.
Alternatively, you can run your script with the shell "-x" option (eg. sh -x myscript).