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 > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Idle Oracle Process has removed automatically in AIX5.2 balareddy AIX 1 06-27-2008 02:07 AM
need help to write script to check the process health and automatically restart it dragondad Shell Programming and Scripting 1 10-31-2006 06:16 PM
start time of a terminated process k_chaaya UNIX for Advanced & Expert Users 2 09-04-2006 12:57 AM
How to supress a "Killed" message when a process is terminated? kenwolff UNIX for Advanced & Expert Users 2 03-22-2004 11:17 AM
process runing automatically lsquillacioti UNIX for Dummies Questions & Answers 2 04-12-2001 08:41 AM

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 12-27-2005
Elango Elango is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 3
Post Process got terminated automatically

Hi,
I am elango. I am working with UNIX AIX version 5.
I am facing tow problem whenever I am trying to run a script.

1. The moment I run the script 3 more jobs are getting started automatically.
I used PS -ef command to check the running Jobs, I found totally 4 jobs
are running for the same script.

/home/mnprocess> nohup run_main.sh > /home/mnprocess/main.log &

/home/mnprocess> ps -ef|grep run
usrmain 1880200 25108614 0 15:12:18 - 0:00 sh -- ./run_main.sh
usrmain 1880200 25108614 0 15:12:18 - 0:00 sh -- ./run_main.sh
usrmain 1880200 25108614 0 15:12:18 - 0:00 sh -- ./run_main.sh
usrmain 1880200 25108614 0 15:12:18 - 0:00 sh -- ./run_main.sh

2. When ever i am submitting a new Job the job got sutomatically stopped with the following message.
[1] - Stopped (SIGTTIN) nohup ././run_main.sh &

I killed all the running jobs then I tried to re subbmit the process after that also the same thing happenning.


Thanks in advance.
  #2 (permalink)  
Old 12-28-2005
aixteam aixteam is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 15
Thumbs up Hi elango

For your process all the PID and PPID are same ....so still we need more details....
What is that script?
  #3 (permalink)  
Old 12-28-2005
Elango Elango is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 3
Quote:
Originally Posted by aixteam
For your process all the PID and PPID are same ....so still we need more details....
What is that script?
It is shell script which will call the othere scripts.
This is the script we are using
export uname=XXXXXXX
. /home/oracle/dba/.PWD_FILE $uname
export exedir=/home/data/data1/etl
$exedir/smt_main.sh


Thanks
  #4 (permalink)  
Old 12-28-2005
Elango Elango is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 3
export uname=XXXXXXX
. /home/oracle/dba/.PWD_FILE $uname
export exedir=/home/data/data1/etl
$exedir/smt_main.sh
  #5 (permalink)  
Old 01-02-2006
alpha(*)test alpha(*)test is offline
Registered User
  
 

Join Date: Jan 2006
Location: india
Posts: 29
hi elango,

----first see to that your internal scripts dont call the parent script....

and

----also nohup command ignores only the SIGHUP signal
----if a parameter is not found, then the script will exit, so u can try seeing the return status of the script to know what happened....

and finally

---try running the script using the shell like #ksh <script name> rather than using the nohup command....
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:37 PM.


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