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: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
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: Tue Dec 03 14:21:48 CST 2024