Question on background running job


 
Thread Tools Search this Thread
Operating Systems AIX Question on background running job
# 1  
Old 10-30-2008
Question on background running job

Guys,

We use AIX 5.3 at our work place. I only in my team have a strange problem of not able run jobs background. Other colleagues are able to run without any problem.

Once I kick off background job using nohup and & command, It immediately stops. The following error I get when I run.

<<homedir>>run>nohup ksh -x data_compare.ksh &
[1] 133116
<<homedir>>run>>Sending nohup output to nohup.out.

[1] + Stopped (SIGTTOU) ksh -x data_compare.ksh &

It could be simple for you guys.

Appreciate your help.
# 2  
Old 10-30-2008
"ksh -x" is a tracing device and will generate a lot of output presumably. Are you able to write to the file "nohup.out" with the userid you use to start this process?

Usually, if sending jobs to background and NOHUP-ing them, they are already tested and don't need extensive tracing any more, so consider changing the call to simply "yourfile.sh" instead of "ksh -x yourfile.sh". You can skip the mentioning of "ksh" too if the first line of your script reads "#!/bin/ksh" (or whateve you want to use as your command interpreter).

I hope this helps.

bakunin
# 3  
Old 10-30-2008
did not help !!!

Quote:
Originally Posted by bakunin
"ksh -x" is a tracing device and will generate a lot of output presumably. Are you able to write to the file "nohup.out" with the userid you use to start this process?

Usually, if sending jobs to background and NOHUP-ing them, they are already tested and don't need extensive tracing any more, so consider changing the call to simply "yourfile.sh" instead of "ksh -x yourfile.sh". You can skip the mentioning of "ksh" too if the first line of your script reads "#!/bin/ksh" (or whateve you want to use as your command interpreter).

I hope this helps.

bakunin
Well It was my mistake of posting the exact command ksh -x before nohup. Yes It is not necessary. but even without ksh -x, it just stops. Please notice error message where it says '+ Stopped(SIGHTTOU)'
I always get this error whenever i run any job without ksh -x or with

thanks for your reply.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Get status of dd running in background job

Hello everyone While working on TUI for scripts, there there came the idea to' add a command' for dd too. That was, after 'wrapping' tar and wget either, to display their growing size and return the exit code with a textual-visual-feedback to the user. Now displaying the filesize of a... (13 Replies)
Discussion started by: sea
13 Replies

2. Solaris

Is user cron job running in background?

Hi, Should the user jobs specified in crontab be running in background? Cron daemon is already running in background. So I am not sure whether should the jobs (output and error messages are redirected to file) ran by it be explicitly stated to be run in background (& at end of command) if one... (1 Reply)
Discussion started by: joe_x
1 Replies

3. Shell Programming and Scripting

Background Job

Hello Everyody, Having a doubt. sort file1 & when we sent a job to the background it returns Job Number PID again if we want to ... (1 Reply)
Discussion started by: knroy10
1 Replies

4. UNIX for Dummies Questions & Answers

suspend a *background* running job

Is there a way to suspend (TSTP?) a job that is running in the background, _without_ first bringing it to the foreground and inputting Ctrl-Z from the keyboard? IOW, something similar to issuing the shell's bg builtin command on a job ID to resume a job that is suspended in the background,... (2 Replies)
Discussion started by: uiop44
2 Replies

5. Shell Programming and Scripting

Cannot submit a background job

Hi all, I am currently facing a problem when i am submitting a script to run in the background to collect statistics round the clock on an AIX box. I don't have root authority nor can I set it in cron. So when i submit the job, it runs fine, but won't let me signoff. It prompts me that... (2 Replies)
Discussion started by: tansha
2 Replies

6. Shell Programming and Scripting

how to get background job to foreground

hi, i am just wondering that wen we give the following code we make a process run in background...can the viceversa be performed?i.e can this be made foreground again # sleep 75& 21751 # (4 Replies)
Discussion started by: sandilya
4 Replies

7. UNIX for Dummies Questions & Answers

background job

on gnome i open a terminal and run wget http://soommmething & in the background. because wget shows me downloading progress percentage and download speed continuously, I exit the gnome-terminal after a while i want to see the download percentage but dont know how. my ps -u myname shows that... (3 Replies)
Discussion started by: babayeve
3 Replies

8. UNIX for Dummies Questions & Answers

Background job

Hiya, Recently I've run a few scripts in the foreground, but have realised later they should of been better nohup'd and placed in the background. I understand how to change a foreground job into a background one, but how would put the job into the nohup state? Thanks (1 Reply)
Discussion started by: rdbooth
1 Replies

9. UNIX for Dummies Questions & Answers

background job

I try to run a script as background job. script: #!/usr/bin/csh /usr/bin/date +20%y-%m-%d > ~/datsql.txt If I start it I got this output: tac> ./datermitteln& 293 + Stopped (SIGTTOU) ./datermitteln& I insert the following line inside my script, but without any... (3 Replies)
Discussion started by: joerg
3 Replies
Login or Register to Ask a Question