Welcome, Guest. Please login or register.

Author Topic: What Does NIL mean in startup  (Read 3627 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline dannyp1Topic starter

  • Hero Member
  • *****
  • Join Date: Aug 2006
  • Posts: 664
  • Country: us
  • Gender: Male
    • Show only replies by dannyp1
What Does NIL mean in startup
« on: February 28, 2007, 09:32:05 PM »
This may be a dumb question but what does the command NIL mean in the user startup file?  I can't find it in my AmigaDOS book.  Thanks,   Dan :-?
 

Offline swift240

  • Hero Member
  • *****
  • Join Date: Mar 2004
  • Posts: 1079
    • Show only replies by swift240
Re: What Does NIL mean in startup
« Reply #1 on: February 28, 2007, 09:35:17 PM »
It means dont show.

Run NIL: (what ever)

Do not show it running, for an example

Mike.
Amiga 1200, 82gb HD, 4 way IDE\'97, DVD Multi-Recorder, OS3.9, BB1,BB2, Apollo Turbo MkII 030/40, 32meg Fastram, 4Gb CF card PCMCIA slot, IDE CF card adaptor 4Gb CF card, HP 810C, Alba HDTV, Converted PC PSU. C128, C64, C16, Plus4, 1701, 1570, 1541MkII, ARP6.0,KCS Power Cart, FreezeFrame MK3B, Freeze Machine, Simons Basic,  PSP, PS1, PS2, PS3 HDMI and 1TB HD+ 80gb USB HD, PS3 TV add on, Sound Surround speakers for PS2,PS3,PC, and Amiga Amazing so
 

Offline orange

  • Hero Member
  • *****
  • Join Date: Dec 2003
  • Posts: 2797
    • Show only replies by orange
Re: What Does NIL mean in startup
« Reply #2 on: February 28, 2007, 09:39:06 PM »
AFAIK, NIL: is a mysterious 'black hole' device, you can copy (redirect in this case  'Run .. >NIL:' ) anything to it and it will vanish, Windows has NUL:  (Linux probably one too)

don't try 'Dir NIL:' who knows what might happen!   :egad:
 :-D
Better sorry than worry.
 

Offline Vincent

  • Hero Member
  • *****
  • Join Date: Dec 2002
  • Posts: 3895
    • Show only replies by Vincent
Re: What Does NIL mean in startup
« Reply #3 on: February 28, 2007, 09:50:58 PM »
Quote

orange wrote:
don't try 'Dir NIL:' who knows what might happen!   :egad:

:lol:

That's kept me laughing for a few minutes.
Xbox360
"Oh no. Everytime you turn up something monumental and terrible happens.
I don\'t think I have the stomach for it." - Raziel
 

Offline Ilwrath

Re: What Does NIL mean in startup
« Reply #4 on: February 28, 2007, 10:11:45 PM »
Yeah, essentially, the NIL: device is "black hole."  You can output anything to NIL and it'll just vanish.  This is actually more helpful than you might think, especially in the startup-sequence.  You can run something with output directed to NIL: so the Amiga doesn't try to open a screen for your output before workbench sets the proper resolution.  :-)

for example to silently set an assignment, you'd:

c:assign >NIL: myassign: dh0:mydir/

this will output nothing whatsoever (even if dh0:mydir/ doesn't actually exist), but will still make the assignment, if possible.  (Of course, if dh0: doesn't exist, I think this would still throw a requestor asking for dh0: to be inserted in any drive.  :lol: )

Quote
(Linux probably one too)

/dev/null

 

Offline huronking

  • Sr. Member
  • ****
  • Join Date: Jul 2002
  • Posts: 301
    • Show only replies by huronking
Re: What Does NIL mean in startup
« Reply #5 on: March 01, 2007, 12:46:49 AM »
"No, Donny, these men are nihilists, there's nothing to be afraid of."

 :-D  :-D  :-D