Path: utzoo!utgpu!watmath!clyde!att!ucbvax!POSTGRES.BERKELEY.EDU!dillon
From: dillon@POSTGRES.BERKELEY.EDU (Matt Dillon)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Problem trying to get RUN to work from processes w/no consoletask.
Message-ID: <8812022227.AA08886@postgres.Berkeley.EDU>
Date: 2 Dec 88 22:27:13 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 29

nordmark@nada.kth.se (Arne Nordmark) Writes:
>NO!!! If you set pr_ConsoleTask to a *valid* device-handler everything will
>work perfectly. (Hey, you said this yourself in your amigamail, remember?)
>That is what "null:" is all about. Just say
>	pr_ConsoleTask=DeviceProc("null:");
>and you won't crash anything, even though the console window is gone.

	Right.  NULL: *does* work.  But let me qualify your statement
just a little.  Not only does it have to be a *valid* device-handler,
it must also accept Open("*", 1006) IN ALL CASES!  That is, you cannot
set pr_ConsoleDevice to a filesystem handler because Open("*",1006)
will fail if "*" is already open!

	I have been testing NULL: at with my cron (setting pr_ConsoleDevice
to DeviceProc("NULL:"), fclose(stderr), and EndCLI'ing the console window
that started it and everything works fine!


	     .		o
      .	    
     	  			    o
 . 
//					  O

					-Matt\|/
					      *

    "The trajectory failed due to an ill-considered rounding of the 
     floating point quantity by the compiler"