Starting IDL on UNIX in the background (rc script) [message #7758] |
Thu, 16 January 1997 00:00  |
Thierry Thelliez
Messages: 2 Registered: February 1996
|
Junior Member |
|
|
For several reasons we are still using
IDL version 3.6.1c (hp-ux hp_pa).
The application works, and we have no plan/time to move to v4.
Our problem is that the command
/disk/idl/bin/lmgrd -c /disk/idl/license.dat &
doesn't work (in the rc script or not).
We get a error message like:
[1] + Stopped(tty output)
It works with:
/disk/idl/bin/lmgrd -c /disk/idl/license.dat
(no '&')
It was not a problem until now. We were 'manually' starting idl.
But now we need to put this code in our rc script (in /sbin/rc4.d on
hpux 10.01).
If we leave the &, idl doesn't start. If we remove the '&', idl starts
but then the workstation doesn't complete its reboot.
Any suggestions ?
Thierry
--
............................................................ .........
. Thierry Thelliez Los Alamos National Laboratory .
. Email: tgt@lanl.gov CIC-15 .
. Voice: (505) 665 8631 MS M310 .
. Fax: (505) 665 5725 Los Alamos NM 87545 .
. URL: http://bayberry.lanl.gov/~thelliez USA .
............................................................ .........
|
|
|
Re: Starting IDL on UNIX in the background (rc script) [message #7870 is a reply to message #7758] |
Tue, 21 January 1997 00:00  |
aspinelli
Messages: 4 Registered: August 1996
|
Junior Member |
|
|
Thierry Thelliez <tgt@lanl.gov> wrote:
> Our problem is that the command
> /disk/idl/bin/lmgrd -c /disk/idl/license.dat &
> doesn't work (in the rc script or not).
> We get a error message like:
> [1] + Stopped(tty output)
This message is typical when your background program prints something
to standard output or standard error. The solution is redirecting
any output lmgrd produces to /dev/null.
If in your script you are using csh, try
/.....license.dat >& /dev/null &
If you are using sh, then the appropriate command is
/.....license.dat 2>1 /dev/null &
If you do not know, try putting in your script
/bin/echo $SHELL > /tmp/myshell
and then reading the file /tmp/myshell
Good luck
Andrea
Andrea Spinelli - Ismes Spa. 9, Via Pastrengo, 24068 Seriate BG, Italy
tel.: +39-35-307777 fax.: +39-35-302999 e-mail: aspinelli@ismes.it
"Truth hurts, but pimples much more"
|
|
|
Re: Starting IDL on UNIX in the background (rc script) [message #7892 is a reply to message #7758] |
Fri, 17 January 1997 00:00  |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
Thierry Thelliez wrote:
>
> For several reasons we are still using
> IDL version 3.6.1c (hp-ux hp_pa).
>
> The application works, and we have no plan/time to move to v4.
>
> Our problem is that the command
>
> /disk/idl/bin/lmgrd -c /disk/idl/license.dat &
>
> doesn't work (in the rc script or not).
>
> We get a error message like:
> [1] + Stopped(tty output)
>
> It works with:
>
> /disk/idl/bin/lmgrd -c /disk/idl/license.dat
> (no '&')
>
When lmgrd loads, and when licenses are checked in/out, it sends
output to stdout, and this may be your problem. I don't know why
it's being stopped, but if you don't care about the output you can
redirect it:
/disk/idl/bin/lmgrd -c /disk/idl/license.dat >! /dev/null
or send it to some file if you like. This might solve your problem.
There may be some underlying problem with your system that leads to
the "tty" message.
DAve
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2200
La Jolla, CA 92037
[ UCSD Mail Code 0949 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|
|