Operating System - HP-UX
1757081 Members
3334 Online
108858 Solutions
New Discussion юеВ

Re: Problems launching a script in background Options

 
jose_luis_fdez_diaz
Occasional Advisor

Problems launching a script in background Options

Hi,

The script runs fine in foreground, but not in background:

<>

m3vmsa3.caddebug /home/caddebug/bin > nohup ksh -x
lanza_EFT_CREATE_COM.ksh -s3 &
[6] 6204
m3vmsa3.caddebug /home/caddebug/bin > Sending output to nohup.out

[6] + Stopped (tty output) nohup ksh -x lanza_EFT_CREATE_COM.ksh -
s3 &
m3vmsa3.caddebug /home/caddebug/bin >
m3vmsa3.caddebug /home/caddebug/bin >
m3vmsa3.caddebug /home/caddebug/bin > cat
nohup.out
+ stty intr ^C

<>

Any hint?

Thanks,
Jose Luis
2 REPLIES 2
rariasn
Honored Contributor

Re: Problems launching a script in background Options

Hi Jos├Г┬й Luis,

Modify script "lanza_EFT_CREATE_COM.ksh" and add next line:


#!/sbin/ksh -x

then

# lanza_EFT_CREATE_COM.ksh -s3 &

Saludos.
jose_luis_fdez_diaz
Occasional Advisor

Re: Problems launching a script in background Options



There was a "stty -tostop" in the ".kshrc" file. That was the problem.

Thanks for your help.

Regards,
Jose Luis