Hi
I have a different requirement,
I need to run some application on my device from a file app_name.txt one by one which is like this:
/usr/apps/email
/usr/apps/message
/usr/apps/settings
after each app while it is running I need to execute again one cmd like
ps -ef |grep /usr/apps/email
then this cmd will give output like this:
user 6423 6602 0 11:23 pts/4 00:00:00 /usr/apps/email
on this output I need to extract the 2nd, 3rd and last column value only and store it to another excel format file(result.xls) whose format will be like:
/usr/apps/email 6423 6602 13025 (sum of the 2 column value)
This all will be executed like same for all other app name from the file app_name.txt
please help me for this script as I am new to this and dont have much idea abt cmds of shell script.