[GRASS5] nviz problem
Huidae Cho
grass4u at gmail.com
Sat Dec 18 08:54:22 EST 2004
Interesting!
Is wish running in background? As I know, a shell-like program cannot be
running in that way because if it's bg'ed or run with "&", /bin/sh or
the login shell takes control of stdin so that users can stay in the login
shell.
If it's executed by a script, then it's ok because it's a usual shell
script.
Do you mean running "nviz" and executing other programs in the "%" nviz
prompt instead of running "nviz &"?
If wish is running in background (wish &), how can you execute wish functions?
Thank you.
Huidae Cho
On Sat, Dec 18, 2004 at 01:22:50PM +0000, Bob Covill wrote:
>
> Hi,
>
>
>
> It appears that not even wish will run in the background on your system ...
>
> very strange.
>
>
>
> The current nviz IS the old NVWISH executable which was called was called by
>
> the old nviz shell script. The reason I got rid of the shell script was
>
> because when nviz encountered an error the same un-informitive message was
>
> generated because it was passed through the script. Also, there are a number
>
> of error catches in the actual nviz tcl scripts which were completely ignored
>
> with the old shell startup.
>
>
>
> Before reverting to the old startup it would be nice to know why wish (and
>
> nviz) will not run in the background on some systems. On both of my RedHat
>
> systems it runs fine both in the background and the foreground.
>
>
>
> --
>
> Bob
>
>
>
> On 12/18/2004, "Huidae Cho" <grass4u at gmail.com> wrote:
>
>
>
> >Hi,
>
> >
>
> >Now nviz is not a *wish script but a shell itself. That's why it prints
>
> >a prompt and we cannot execute it background and inside "d.m &". To fix
>
> >this problem, I think we should go back to NVWISH because running nviz
>
> >foreground is pain.
>
> >
>
> >You can test this:
>
> >
>
> > wish &
>
> >
>
> >prints % prompt and just stop!
>
> >
>
> >Huidae Cho
>
> >
>
> >
>
> >On Fri, Dec 17, 2004 at 09:02:39PM -0400, Bob Covill wrote:
>
> >> Hello,
>
> >>
>
> >> I tried running the latest version of nviz in the background with
>
> >> various options and it seems to work fine. The "%" prompt that you see
>
> >> is perfectly normal. The nviz program is simply a customized version of
>
> >> the Tcl/Tk "wish" executable. Try executing "wish" on the command line
>
> >> and you should see the same prompt.
>
> >>
>
> >> As for it crashing when it is run in the background, I have no idea. You
>
> >> might try changing GRASS_MESSAGE_FORMAT environment variable to see if
>
> >> that has any effect.
>
> >>
>
> >> It might help to know what platform and Tcl/Tk version it is failing on.
>
> >>
>
> >> For me it works on RedHat 7.3 with Tk8.3, and RedHat 9 with Tk8.4.
>
> >>
>
> >> --
>
> >> Bob
>
> >>
>
> >>
>
> >> Helena wrote:
>
> >> >Huidae Cho wrote:
>
> >> >
>
> >> >>Hi,
>
> >> >>
>
> >> >>I noticed today that nviz doesn't work if I run it background as
>
> before.
>
> >> >>Similarly, it just stops after displaying a map when it's executed from
>
> >> >>"d.m &" which is recommended in the welcome message.
>
> >> >>
>
> >> >>nviz elevation=dem & # doesn't work
>
> >> >>d.m & # nviz doesn't work
>
> >> >>
>
> >> >>nviz elevation=dem # works!
>
> >> >>d.m # nviz works!
>
> >> >>
>
> >> >>And I see nviz prints % prompt. Does anyone have a clue?
>
> >> >
>
> >> >
>
> >> >It must be the latest change that was done - I just tried it and it
>
> >> >does not work even if I do nviz elevation=dem, it displays the DEM
>
> >> >but fails to open the Main pannel and prints a % prompt.
>
> >> >It worked OK just a few days (weeks?) ago.
>
> >> >It may be related to the change in the startup script - Bob, are you
>
> >> >around? How does it work for you?
>
> >> >
>
> >> >Helena
>
> >> >
>
> >> >>
>
> >> >>Thanks.
>
> >> >>Huidae Cho
>
> >> >>
>
> >> >>_______________________________________________
>
> >> >>grass5 mailing list
>
> >> >>grass5 at grass.itc.it
>
> >> >>http://grass.itc.it/mailman/listinfo/grass5
>
> >> >
>
> >> >
>
> >
>
> >
More information about the grass-dev
mailing list