Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: XDelusion on June 22, 2005, 09:26:11 AM

Title: Does run NIL> xxx still work in OS 3.9?
Post by: XDelusion on June 22, 2005, 09:26:11 AM
I used to have:

run NIL> newmouse

in my startup-sequence file in order to auto launch my Serial Mouse.

In OS 3.9 that does not seem to work. Do I need to launch it another way now?
Title: Re: Does run NIL> xxx still work in OS 3.9?
Post by: Piru on June 22, 2005, 09:38:11 AM
Well, if you want to run command called "NIL" and redirect the output to file "newmouse", that works just fine.

But, if you want to run command called newmouse and redirect all output to NIL: you should use something like:
Code: [Select]
run >nil: newmouse >nil:
Title: Re: Does run NIL> xxx still work in OS 3.9?
Post by: XDelusion on June 22, 2005, 11:38:23 AM
Thank you!
Title: Re: Does run NIL> xxx still work in OS 3.9?
Post by: lorddef on June 22, 2005, 01:30:19 PM
could you not also do:

run <>nil: newmouse

?
Title: Re: Does run NIL> xxx still work in OS 3.9?
Post by: Vincent on June 22, 2005, 01:57:49 PM
That would work aswell.
Title: Re: Does run NIL> xxx still work in OS 3.9?
Post by: Thomas on June 22, 2005, 03:12:02 PM

> redirects output to the specified file
< redirects input from the specified file
<> redirects both to/from the specified file
nil: is a file system which trashes every output or gives no input.

run >nil: newmouse

is fully sufficient to detach newmouse from the CLI window.

Bye,
Thomas
Title: Re: Does run NIL> xxx still work in OS 3.9?
Post by: Piru on June 22, 2005, 03:20:47 PM
@Thomas

AmigaOS 3.9 BB2 shell also implements the following:

*> foo  redirect stderr output to file "foo"
*>> foo append stderr output to file "foo"
*><     send stderr output to stdout (to the same file)

These do NOT work with older shells however.
Title: Re: Does run NIL> xxx still work in OS 3.9?
Post by: adolescent on June 22, 2005, 07:09:55 PM
@Piru

That's good stuff.  It's nice to see that you can now seperate stdout and stderr streams.  Is there a list of other shell enhancements from BB2?  
Title: Re: Does run NIL> xxx still work in OS 3.9?
Post by: lorddef on June 22, 2005, 10:57:03 PM
@Thomas, yes I always thought of it as amigas equivalent to /dev/null