Process got terminated automatically


 
Thread Tools Search this Thread
Operating Systems AIX Process got terminated automatically
# 1  
Old 12-27-2005
Java 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  
Old 12-28-2005
MySQL Hi elango

For your process all the PID and PPID are same ....so still we need more details....
What is that script?
# 3  
Old 12-28-2005
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  
Old 12-28-2005
export uname=XXXXXXX
. /home/oracle/dba/.PWD_FILE $uname
export exedir=/home/data/data1/etl
$exedir/smt_main.sh
# 5  
Old 01-02-2006
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....
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Redhat Virtualization EN error : InitLogger main process terminated with status 1

My server has /var/log/messages with 'init: initLogger main process (608798) terminated with status 1' errors. I researched about the error and also followed the steps from stackexchange : 157059/error-init-ttys0-dev-ttys0-main-process-1612-terminated-with-status-1]linux - ERROR: init: ttyS0... (0 Replies)
Discussion started by: Paras Pandey
0 Replies

2. Shell Programming and Scripting

How to stop cronjob automatically after cron process get completed?

Hi , I have scheduled the script using cron between 25-31 of the month. My script will trigger the ETL job once file is available in Windows path between these days(every 2 hours between 26 - 30 of every month ). So my question : "if the ETL job completes cron should stop the running the... (5 Replies)
Discussion started by: Jaganjag
5 Replies

3. Red Hat

Start a service manager process automatically on startup

Hello, I am in the process of learning Linux OS. How do I run the below lines of code automatically as root on server startup. cd /opt/program_folder/ServiceManager/bin nohup ./servce_manager DEV & Currently, as soon as the server is up and running I log in as root (as this... (6 Replies)
Discussion started by: rparavastu
6 Replies

4. UNIX for Dummies Questions & Answers

Process getting terminated after sleep iterations

Hello All, I have a script which has a functionality to sleep for 300 seconds after it does some processing, so in the logs if i check after the 3 iteration of sleep it didn't write saying "sleeping for 300 seconds". I suspect putty would automatically terminate session as i cannot access it any... (1 Reply)
Discussion started by: Ariean
1 Replies

5. Shell Programming and Scripting

Script - How to automatically start another process when the previous process ends?

Hi all, I'm doing automation task for my team and I just started to learn unix scripting so please shed some light on how to do this: 1) I have 2 sets of datafiles - datafile A and B. These datafiles must be loaded subsequently and cannot be loaded concurrently. 2) So I loaded datafile A... (10 Replies)
Discussion started by: luna_soleil
10 Replies

6. UNIX for Dummies Questions & Answers

PID - Getting the processname of terminated/old Process

Hi all! I'm using CentOS 5.2 with KDE. Is it possible to get a processname/cmd of a terminated process (= PID not present with PS-command) ? Are the processnames/scriptnames logged somewhere? (I did not find them in /var/log/messages) (5 Replies)
Discussion started by: JohnMurdoch
5 Replies

7. UNIX for Advanced & Expert Users

start time of a terminated process

Hi, I have a shell script which i am running. I want it's starting time (the time when the execution of the shell script started) in another shell script. Note that the process has already terminated when i need it's starting time.... else i could have used ps -f | cut -d" " -f5... But that's... (2 Replies)
Discussion started by: k_chaaya
2 Replies

8. UNIX for Advanced & Expert Users

How to supress a "Killed" message when a process is terminated?

Does anyone know how I can supress the "Killed" message that's produced when I kill a process? I've got a script that performs a "tail -f" on a database error log and pipes the output into an awk script which looks for certain error messages and forwards any that qualify to my pager. The problem... (2 Replies)
Discussion started by: kenwolff
2 Replies

9. UNIX for Dummies Questions & Answers

process runing automatically

Hi, I need some help, because I'm trying to create a process runing all the time (not invoqued by a crontab), like a daemon, to detect the creation of a new file in a specific directory and axecute a process wich do something with this new file. Can you help me? For your information my Unix is... (2 Replies)
Discussion started by: lsquillacioti
2 Replies
Login or Register to Ask a Question