Welcome, Guest. Please login or register.

Author Topic: Does run NIL> xxx still work in OS 3.9?  (Read 2580 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline XDelusionTopic starter

  • Alien Breeder
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 5089
    • Show only replies by XDelusion
    • http://starwarslegacy.net/
Does run NIL> xxx still work in OS 3.9?
« 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?
Earth has a lot of things other folks might want... like the whole planet. And maybe these folks would like a few changes made, like more carbon dioxide in the atmosphere and room for their way of life. - William S. Burroughs
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Does run NIL> xxx still work in OS 3.9?
« Reply #1 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:
 

Offline XDelusionTopic starter

  • Alien Breeder
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 5089
    • Show only replies by XDelusion
    • http://starwarslegacy.net/
Re: Does run NIL> xxx still work in OS 3.9?
« Reply #2 on: June 22, 2005, 11:38:23 AM »
Thank you!
Earth has a lot of things other folks might want... like the whole planet. And maybe these folks would like a few changes made, like more carbon dioxide in the atmosphere and room for their way of life. - William S. Burroughs
 

Offline lorddef

  • Hero Member
  • *****
  • Join Date: Apr 2002
  • Posts: 1146
    • Show only replies by lorddef
    • http://
Re: Does run NIL> xxx still work in OS 3.9?
« Reply #3 on: June 22, 2005, 01:30:19 PM »
could you not also do:

run <>nil: newmouse

?
Restraining orders are just another way of saying I love you!
 

Offline Vincent

  • Hero Member
  • *****
  • Join Date: Dec 2002
  • Posts: 3895
    • Show only replies by Vincent
Re: Does run NIL> xxx still work in OS 3.9?
« Reply #4 on: June 22, 2005, 01:57:49 PM »
That would work aswell.
Xbox360
"Oh no. Everytime you turn up something monumental and terrible happens.
I don\'t think I have the stomach for it." - Raziel
 

Offline Thomas

Re: Does run NIL> xxx still work in OS 3.9?
« Reply #5 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

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Does run NIL> xxx still work in OS 3.9?
« Reply #6 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.
 

Offline adolescent

  • Hero Member
  • *****
  • Join Date: Sep 2003
  • Posts: 3056
    • Show only replies by adolescent
Re: Does run NIL> xxx still work in OS 3.9?
« Reply #7 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?  
Time to move on.  Bye Amiga.org.  :(
 

Offline lorddef

  • Hero Member
  • *****
  • Join Date: Apr 2002
  • Posts: 1146
    • Show only replies by lorddef
    • http://
Re: Does run NIL> xxx still work in OS 3.9?
« Reply #8 on: June 22, 2005, 10:57:03 PM »
@Thomas, yes I always thought of it as amigas equivalent to /dev/null
Restraining orders are just another way of saying I love you!