Welcome, Guest. Please login or register.

Author Topic: startup-seq  (Read 1873 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline lionstormTopic starter

startup-seq
« on: February 13, 2004, 07:46:20 AM »
Hi all,
I added buffers to some drives on my startup-sequence but if drive is missing, I get the message can not find device and have to press retry or cancel.
ex : addbuffers df1: 50
But how to avoid this message and let the s-s go on when the df1 is disconnected ? How to tell the system "well if the device is not there just forget" instead of "well the device is not there, what should I do : ask the guy who switch me on" ?
lio
 

Offline scholle

  • Jr. Member
  • **
  • Join Date: Sep 2002
  • Posts: 97
    • Show only replies by scholle
    • http://home.arcor.de/schollsky
Re: startup-seq
« Reply #1 on: February 13, 2004, 08:08:43 AM »
Hi, lio!

Try the following:

assign >NIL: DF1: exists
IF NOT WARN
    ADDBUFFERS >NIL: DF1: 50
ENDIF


Offline lionstormTopic starter

Re: startup-seq
« Reply #2 on: February 13, 2004, 09:56:14 AM »
Thanks, it looks good.
what the >NIL: is supposed to do ? (I am no developper)
Lio
 

Offline Thomas

Re: startup-seq
« Reply #3 on: February 13, 2004, 10:33:40 AM »

The ">" sign redirects the output to the file following the sign. NIL: is the AmigaDOS trashcan, it trashes everything written to it.

So if the addbuffers command does not stop the script the addition of ">NIL:" to the command will be sufficient. You may also add the line

failat 21

to the top of the script so it will bever be stopped by a failing command. (Failat sets the smallest return code which will stop the script. And a failing command usually returns 20.)

Bye,
Thomas

Offline lionstormTopic starter

Re: startup-seq
« Reply #4 on: February 16, 2004, 08:14:06 AM »
Thanks Thomas for sharing this. So I should put the failat 21 before the assign ?
Lio
 

Offline zipper

Re: startup-seq
« Reply #5 on: February 16, 2004, 11:03:27 AM »
I use failat 21 on the top of startup scripts, so they do not freeze even if I forget to remove obsolete lines from them...
 

Offline that_punk_guy

  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 4526
    • Show only replies by that_punk_guy
Re: startup-seq
« Reply #6 on: February 16, 2004, 03:40:27 PM »
Quote
zipper wrote:
I use failat 21 on the top of startup scripts, so they do not freeze even if I forget to remove obsolete lines from them...


That's akin to painting over rising damp, really though... I never used a failat in five years of constant (and I mean constant) Amiga use. It's better to know if something's going wrong.
 

Offline zipper

Re: startup-seq
« Reply #7 on: February 16, 2004, 08:19:15 PM »
Yeah, you do know when using RTG screenmode you get black screen by startup and begin to change monitor/lead/boot partition etc etc. to see what's happening...