home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / jobq110.lzh / jq.doc < prev    next >
Text File  |  1993-10-13  |  6KB  |  207 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.     Job Queue system for OS/2 2.xx  Version 1.10       (C) Ola Garstad 1993
  10.  
  11.  
  12.  
  13.     WHAT IS JQ?
  14.  
  15.     JQ is a job queue system for OS/2 2.xx. Job queues are found on mini-and
  16.     mainframe machines. It allows the user to put jobs into a queue for
  17.     processing. Multitasking is a nice thing, but running many programs at
  18.     once eats up your CPU time causing more important programs to run slowly.
  19.  
  20.     JQ works almost like the OS/2 command "Start" that lets you start a job
  21.     (program) in the background, but each time you use Start a new session
  22.     starts using more and more of the CPU. JQ lets you put several jobs in the
  23.     background, and they are run one after the other.
  24.  
  25.     I use JQ on my BBS to make filelists, statistics, check new files for
  26.     virus, import/export echomail, reindex messages areas etc.
  27.  
  28.  
  29.  
  30.     SOME SHORT LEGAL STUFF
  31.  
  32.     Copyright (C) Ola Garstad 1993.
  33.  
  34.     This program is not public domain, but it may be used freely. You are not
  35.     allowed to sell this program in any way. You must give it away.
  36.  
  37.     Nobody ever pays for shareware, so why bother with asking people to pay?
  38.     However, if you like this program I will not deny you to pay me some
  39.     money.
  40.  
  41.     All rights belong to Ola Garstad.
  42.  
  43.     Parts of the code are copyrighted by Borland International.
  44.  
  45.  
  46.  
  47.     DISCLAIMER
  48.  
  49.     The Software is provided as is and comes with no warranty of any kind,
  50.     either expressed or implied. In no event will the author be liable for any
  51.     damages resulting from the direct or indirect use of this Software.
  52.  
  53.     The user of this Software bears all risk as to its quality and perfor-
  54.     mance.
  55.  
  56.     To put it simple: If this Software destroys your machine or data then
  57.     that's your problem. You have been warned.
  58.  
  59.     Batteries are not included.
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.     SHORT ABOUT THE FILES
  68.  
  69.     JQ.EXE          Used to put jobs into the queue
  70.     JQS.EXE         The job queue server program.
  71.     RUNJQ.CMD       Used to start the server in a FS session.
  72.  
  73.  
  74.  
  75.     USING JQ
  76.  
  77.     Run RUNJQ to start the server and wait a few seconds for it to start.
  78.  
  79.     Now you can use JQ to insert jobs into the queue.
  80.  
  81.     Syntax: JQ  -p#   -q#   -t   -s   -lfilename  commandline
  82.  
  83.     -p    sets the queue priority of the job.
  84.  
  85.           The priority may be 0 - 15. Default is 7.
  86.           Jobs with higher priority are processed before jobs with lower. Jobs
  87.           with equal priority are processed as first-in first-out. 
  88.           Example: To set priority to 10, use -p10 (no spaces!).
  89.  
  90.     -q    sets the queue number to use. Default is queue #1.
  91.           Example: To use queue #2, use -q2 (no spaces!).
  92.  
  93.     -s    causes the job to be run with server CPU priority.
  94.     -t    causes the job to be run with time-critical CPU priority.
  95.  
  96.           Used for communications and other time critical applications.
  97.  
  98.     -l    sets a local logfile for THIS command entry.
  99.           Example: -lmylog.log (no spaces!).
  100.           When the job is run, this will be logged in this logfile in addition
  101.           to the normal logfile.
  102.  
  103.     Note: All parameters are optional.
  104.  
  105.  
  106.     E.g. to start the program "make" with the arguments "-fjq.mak":
  107.  
  108.     JQ make -fjq.mak
  109.  
  110.     To start the program "fileget" with queue priority 9:
  111.  
  112.     JQ -p9 fileget
  113.  
  114.     Most errors cause the programs to stop with errorlevel 2.
  115.  
  116.     If JQ is started, and the server is not running, JQ will stop with error-
  117.     level 3. This can be used in a batch file to start the server if it isn't
  118.     already running.
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.     SPECIAL COMMANDS
  127.  
  128.     JQ will accept some special commands. Special commands always start with
  129.     "::" and are processed by the queue server program.
  130.  
  131.     Allowed special commands are:
  132.  
  133.     ::beepThe server will beep. Can be used to tell you when a job is done.
  134.  
  135.     ::cls Clear the screen on the server.
  136.  
  137.     ::nop Do nothing. Used together with the errorlevel to check if the queue
  138.           server is running.
  139.  
  140.     ::stopStop the server.
  141.  
  142.  
  143.     For the latest information about available switches use the "-?" switch on
  144.     JQ.EXE and JQS.EXE.
  145.  
  146.  
  147.     HOW TO INSTALL
  148.  
  149.     Copy JQ.EXE, JQS.EXE and RUNJQ.CMD into your favorite directory (it should
  150.     be in the PATH).
  151.  
  152.     Copy C2.DLL into your DLL directory. (mostly C: OS2 DLL)
  153.  
  154.  
  155.  
  156.     CONTACTING THE AUTHOR
  157.  
  158.     The author, Ola Garstad, may be contacted at:
  159.  
  160.     Home 5 BBS +47 22 22 10 64
  161.     Fidonet 2:210/15
  162.  
  163.     Email: Ola_Garstad f15.n210.z2.fidonet.org (preferred)
  164.        or: Ola_Garstad no5.fidonet.bbs.no      (still under test, but quicker)
  165.  
  166.  
  167.     THANKS TO:
  168.  
  169.     Kjetil Larsen for beta testing and comments.
  170.  
  171.     My cats for laying on the monitor and teaching me patience during 
  172.     debugging sessions.
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.     Version history:
  182.  
  183.       1.00 2 july 93  First release.
  184.  
  185.       1.10Added queue numbers. This makes it possible to run several queue
  186.           servers at the same time.
  187.  
  188.           Possible to set time critical and server priority on JQ (-t & -s
  189.           switches). Possible to set the default priority class that JQS will
  190.           run with (prtyc).
  191.  
  192.           JQ now reads the real command line from the OS/2 API (not the C
  193.           runtime library). This enables use of quote characters in the
  194.           commands. Totally rewrote the command line phraser.
  195.  
  196.           Changed "PRIORITY" in header message of JQS to "QUEUE PRIORITY".
  197.  
  198.           If no command is entered on the command line the program will stop
  199.           without entering anything in the queue. This used to cause an empty
  200.           item in the queue.
  201.  
  202.           Changed help syntax.
  203.  
  204.           JQS shows queue number and default priority class in heading.
  205.  
  206.           Changed log format because of priority class logging.
  207.