[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

111.0. "DATE ?" by 25813::MACDONALD (CUP/ML) Fri Sep 19 1986 14:20

    When using the "DATE ?" command in s/Startup-Sequence,
    is there a way to supress the prompt that comes up?
    Its something like TIME,DATE,VER/ etc.
    
    I would like to supress it and use something like
    echo "Please enter the time and date:"
    
    Any ideas?
    
    Paul
T.RTitleUserPersonal
Name
DateLines
111.1I Used to Know How to Do That!ERLANG::FEHSKENSMon Sep 22 1986 14:259
    Yes, you redirect the command output with something like ">nil".
    I forget the precise details, but it's written up somewhere in the
    documentation.  Take a look at the existing s/Startup-Sequence,
    where it finally invokes the workbench, for an example.  My own
    Startup-Sequence does exactly what you describe, but I set it up
    many months ago and haven't looked at it since.
    
    len.
    
111.2YepAUTHOR::MACDONALDCUP/MLMon Sep 22 1986 14:294
  I figured it out. I put a >nil: (or something like that) and it
    supressed the prompt. Pretty neat.
    
    Paul
111.3ANOTHER METHODKAOM03::GOSLINGMon Sep 22 1986 15:3410
         I am using a version of a startup-sequence I copied from one of
         the magazines (not sure which one).  It asks for the date by way
         of "date >nil ?", without displaying the date/time/ver/etc/etc
         prompt.  I will endeavour to post it here tonite so that you
         have the exact syntax.
         

         Art Gosling - Kanata
         
111.4EXAMPLE STARTUP-SEQUENCEKAOM03::GOSLINGTue Sep 23 1986 14:4639
         As promised (although late - sorry!) is the startup-sequence
         that I use.  The Echo commands, and the text contained in them,
         are "fluff" that you need not include.  I find it handy in
         ensuring that I booted the proper disk! {I'll be glad to get a
         hard disk}  

         With respect to the "S:now" file, you will have to create this
         in the s: directory.  It will contain the date that you last
         entered, and upon each startup, displays it for you as the
         default, so to speak.  A <cr> will accept it as is, or you can
         enter the date and/or time as you see fit.  I find this great
         particularly if you have used the system in the recent past.  As
         an example, if you used the system last night, and are turning
         it on tonite, the "date < s:now" command will print out "Monday
         22-Sept-1986 20:20:20", you can accept this with a <cr>, or
         enter in the date and time in the proper format, or simply enter
         Tuesday 20:10 as your response.  This date/time then gets copied
         into s:now (the `date > s:now' command) for pulling in the next
         time you startup.  Saves a bit of typing and eliminates
         wondering if you adhered to the proper format.  Obviously, this
         drops you into CLI, so if you want to go to the Workbench
         screen, you will need to add a couple of lines.  

Echo ""
Echo "                             AMIGA BASIC DISK"
Echo ""  
Echo "                               Releases 1.0"
Echo ""
Echo ""
Date < S:now
Echo ""
Echo "                     Please enter current time and date."
Echo ""
Date > Nil: ?
Date > S:now
Echo ""


         Art
111.5I like mice bestTSE::FONSECACaught peeking under the rug of life...Wed Sep 24 1986 12:229
I was over at a friend's house, and he was showing off his
roomate's amiga.  The roomate had some sort of little date
program in his startup which put up a requestor for the date
which had little 'sliders' (pots) to adjust all the fields in
the date/time.

The roommate was not home, and I didn't have a disk with me to
copy it.  I'll try to find out the name of the program, and where
he got it from (I'm sure that it is public domain.)