The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
script to monitor process running on server and posting a mail if any process is dead pradeepmacha Shell Programming and Scripting 13 03-06-2009 07:33 AM
Monitor open file handles used by a process jakSun8 Shell Programming and Scripting 3 07-15-2008 10:25 AM
launch & monitor process on remote host mrx Shell Programming and Scripting 1 10-15-2004 10:20 AM
Lightwight Process monitor LivinFree Shell Programming and Scripting 7 11-21-2001 05:56 AM
How to monitor if a process is running Pedro Tavares High Level Programming 3 11-14-2001 03:34 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-21-2008
infyanurag infyanurag is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 65
not able to monitor the process

hi all

I am running a script monitor using source command.
the shell script monitor is used to execute a pl/sql procedure.
when i do
source monitor
and then
ps -ef | grep <procedure name>

i do not get any info

but when i do
sh monitor
and then
ps -ef | grep <procedure name>

i get the result.

why is that so and how to monitor by using source.
  #2 (permalink)  
Old 08-21-2008
Annihilannic Annihilannic is offline Forum Advisor  
  
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 1,009
I think we'll need to see the contents of the monitor script to answer this.
  #3 (permalink)  
Old 08-21-2008
infyanurag infyanurag is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 65
Quote:
Originally Posted by Annihilannic View Post
I think we'll need to see the contents of the monitor script to answer this.
the contents are simple

sqlplus anurag/anurag@anurag << eof
exec sp_proc_data;
eof

thats it.
  #4 (permalink)  
Old 08-21-2008
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Staff  
Moderator(The Tutor)
  
 

Join Date: Jun 2008
Location: INDIA
Posts: 1,390
source command is similar to "." right
i mean source scriptname==. scriptname.
  #5 (permalink)  
Old 08-21-2008
Annihilannic Annihilannic is offline Forum Advisor  
  
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 1,009
vidyadhar85, that's correct.

infyanurag, what string are you grepping for?
  #6 (permalink)  
Old 08-21-2008
infyanurag infyanurag is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 65
Quote:
Originally Posted by Annihilannic View Post
vidyadhar85, that's correct.

infyanurag, what string are you grepping for?
i am using grep -i sp_proc
  #7 (permalink)  
Old 08-21-2008
rikxik's Avatar
rikxik rikxik is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 250
@infyanurag:

Please post the output of the grep.
Also post the output of "ptree <pid_of_monitor_process>".

That may provide some clue.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:14 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0