Re: [Code] Crashbug and Question

From: Daniel W. Burke (dwb@ix.netcom.com)
Date: 12/10/96


On Tue, 10 Dec 1996, Brian Guilbault wrote:

> Hi Everyone-
> 
> And the second thing...not really circle related, but how can I check for 
> the existance of a file before I do something to it in a shell script 
> (read autorun). I have my mud compile into circle.tst and then move it 
> circle.move, then have autorun move that to circle before rebooting. That 
> works fine...if the file exists. If it doesn't then autorun chokes on me.

>From my own autorun file using csh

  if (-r bin/circle.new) then
    rm bin/circle
    mv bin/circle.new bin/circle
  endif



Brazil

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST