home *** CD-ROM | disk | FTP | other *** search
- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- CommandReq -- Command File Requester
- Copyright 1987 Jay Johnson and Sam Morse
- ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- Written by Jay Johnson and Sam Morse
- Version 1.0 July 17th, 1987
- ***************************************************************************
- This program is public domain. It may be freely distributed as long as this
- file accompanies it. The authors assume no liability for missuse of this
- program and are not liable for any damage incurred during use. Use at your
- own risk.
-
- This program may be used in commercial software ONLY with the written consent
- of the original authors.
-
- Please send modifications of this code to the below address so that we may
- better control the evalution and insure that the best revisions are included
- in updates.
- *****************************************************************************
-
- This little program comes in quite handy at certain times. What it does
- is allows a user to place optional commands into 'execute' files. When
- executed, the program will place a requester on the screen asking if you
- want a specified command string executed.
- For example:
-
- You have a 'execute' file that contains:
-
- cc +p filename
- ln filename -lc
-
- that you use for standard compiles and links with the Aztec compiler.
- You want the link to be optional, so you would use the command:
-
- CommandReq "ln filename -lc"
-
- in place of the second line. This would allow you to optionally link the
- program whenever you want. The requester looks something like:
-
- ---------------------------------
- | Execute this command: |
- | |
- | [command ] |
- | |
- | [ YES ] [ STOP! ] [ NO ] |
- ---------------------------------
-
- Selecting YES, would execute the command. Selecting NO, would pass over
- the specified command and continue with the 'execute' file. Selecting STOP
- would cause CommandReq to return an error and stop the 'execute' file at
- that point.
-
- The requester command line is a string-gadget and allows the user to
- modify the contents of the command-line before returning it to the program.
- Lets say that you pass the command 'ln filename -lc' to the program and
- decide that you want it to be 'ln filename -lm'. You could then edit into
- the string-gadget the replacement command and press return and it will be
- executed.
-
- CommandReq also allows timeout defaults with the requester. You can tell
- the program that if no selection is made after n seconds, that a default
- selection will be made. This allows unattended operation of the program and
- makes the program useful in the 'startup-sequence' of your system. The full
- command line is:
-
- CommandReq "command" [default(YES/NO/STOP)] [seconds(1-600)]
-
-
- If you do not select a default, the requester will stay up infinitely until
- one of the gadgets is selected, or <return> typed while working in the string
- gadget. If you select a default paramater (YES/NO/STOP) and do not supply
- the seconds, the default time is 10 seconds. You must specify a default
- before you specify a timeout count. BEWARE, the requester WILL timeout after the
- timeout period reagrdless of what you are doing in the requester. If you
- think you will be editing the command-line in the requester, do not specify
- a default in the command-line.
-
- Use it to selectively set up your environment on the fly. Optionally send
- stuff to RAM:, optionally start clock and other background programs. This is
- the best way to control the Amiga environment when your uses vary from power
- up to power up.
-
- NOTE: 'cd' does not work properly as of this version.
-
- If you have any questions about the program or have comments, feel free
- to send them to:
-
- Sam Morse c/o
- A.M.I.G.A.
- P.O. Box 32374
- Fridley, MN 55432
-
- or call:
-
- 'The Phoenix' - An Amiga Citadel BBS
- (612) 459-8095 (300/1200/2400 BAUD)
- 24 Hours (carriage returns to connect)
-
-
-