Home » Infrastructure » Unix » script output in serial
script output in serial [message #320412] Thu, 15 May 2008 01:26 Go to next message
cgk_js
Messages: 48
Registered: December 2005
Member
hi all,

i need your assistance on the below.

the below script will be keep on refreshing for ps -ef | grep prdapp1

but when we execute the ps -ef | grep prdapp1 it will display the output in serial manner,
but if i execute the below script, the ouptput is displayed as
follows

output
========

JOBS running in prdapp1 user

root 970930 1495196 0 14:18:49 pts/2 0:00 grep prdapp1 prdapp1 1372218 1466512 0 13:34:46 - 0:00 /prd/bcrs/MLP/bin
/SCB_MLP_callCreateTask REC_SPLIT prdapp1 1466512 1048592 0 13:34:46 - 0:00 /bin/sh -x /prd/bcrs/MLP/src/scripts/SCB_MLP
_custom.sh REC_SPLIT

Kindly help me to generate the output in the serial manner.


execution script
=================
while [ 1 -eq 1 ]
do
sleep 5
clear;
tput cup 15 5;
echo "\033[1m JOBS running in prdapp1 user \033[0m"
(tput sc ; tput cup 20 5 ; echo "\033[1m" `ps -ef | grep prdapp1` "\033[0m" ; tput rc)
done


Thanks
Gopal Laughing

Re: script output in serial [message #320415 is a reply to message #320412] Thu, 15 May 2008 01:32 Go to previous message
Michel Cadot
Messages: 64103
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
This is an Oracle forum not a Unix one.
The description of the Unix subforum starts with "Oracle" and refers to Unix specific question on Oracle.

Regards
Michel

Previous Topic: Need Patch set information....
Next Topic: Kill Session
Goto Forum:
  


Current Time: Sun Dec 04 10:22:43 CST 2016

Total time taken to generate the page: 0.10838 seconds