Turns out the exec worked. I'm using bash, BTW, to answer the
question. I've written lots of shell scripts and never seen anything
like this before. I wrote a simple little C program equivalent to
the Java class I posted and it runs perfectly from a script. What's
the difference???
I normally run with bash, but also tried ash, pdksh, and csh.
Also, the little class and shell script I posted works perfectly on
a SPARC. :-(
Russ
[EMAIL PROTECTED] on 02/19/99 05:44:30 PM
To: [EMAIL PROTECTED]
cc: (bcc: Russell Pridemore/Lex/Lexmark)
Subject: Re: java shell script
Humm, I did not run into that. Another thing you might want to try is
to exec the java program instead of just running it as a child process.
When I used "exec java -native ..." that fixed the problem for me.
Mo DeJong
dejong at cs.umn.edu
On Fri, 19 Feb 1999 [EMAIL PROTECTED] wrote:
> No, I'm seeing the same problem with both green and native threads...
>
>
>
>
>
> [EMAIL PROTECTED] on 02/19/99 05:17:34 PM
>
> Please respond to [EMAIL PROTECTED]
>
> To: [EMAIL PROTECTED],
> [EMAIL PROTECTED]
> cc: (bcc: Russell Pridemore/Lex/Lexmark)
> Subject: Re: java shell script
>
>
>
>
> On Fri, 19 Feb 1999 16:10:43 -0600, Moses DeJong wrote:
>
> >I ran into this same problem. I too posted a note to the mailing list
> >but I did not hear back from anyone. The really odd part was that it
> >only seemed to happen when running with native threads. If I ran the
> >green threads version it worked just fine. Another strange thing that
> >seemed to happen with that native threads version is that reading
> >from System.in did not work when java was invoked from a shell script.
>
> Please remember that the 1.1.7 native threads package is "beta level"
> code. It works relatively well but there are known limitations and
> some other problems with it. You may have bumped into one or two of these.
>
>
> Michael Sinz -- Director of Research & Development, NextBus Inc.
> mailto:[EMAIL PROTECTED] --------- http://www.nextbus.com
> My place on the web ---> http://www.users.fast.net/~michael_sinz
>
>
>
>
>
>
>
>
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]