home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 8 / CDASC08.ISO / VRAC / TASKER19.ZIP / TASKER.DOC < prev    next >
Text File  |  1993-08-29  |  19KB  |  493 lines

  1.                               TASKER ver. 1.9
  2.                  Copyright (c) 1993 SkinnyMan Applications
  3.                             All Rights Reserved
  4.  
  5. LET'S GET DOWN TO BUSINESS:
  6.  
  7.    If you want to try tasker without reading this well written and concise
  8.    document,  run TASKER /A from the same path as the EXE, add a task, set
  9.    your pc time to about 10 seconds prior and run TASKER.  After that, do the
  10.    same only try the /redir option (TASKER /redir).  Look at the REDIR.TXT
  11.    file.  Go ahead, put in any command, program or batch file (for batch
  12.    files please use 'call'.  ex.  CALL BATCH1.BAT).  Give it a
  13.    good work out.  Then check out the rest of this doc for all it's options
  14.    and features.
  15.    
  16.    Support info is at the end of this doc for easy access.  Please don't 
  17.    hesitate to contact me for any reason during the evaluation period.
  18.    
  19.    This is an evaluation copy only.  If you continue to use this utility
  20.    beyond 30 days please register.  By registering you receive free upgrades,
  21.    support, the ability to suggest enhancements to future versions, etc...
  22.  
  23.                     SkinnyMan
  24.  
  25. WHAT IS TASKER?
  26.  
  27.    Tasker is an unattended program dispatcher.  It will execute any
  28.    program and parameters, or command line input 
  29.    (Copy, dir, ren, md, del *.*, etc.. ) at any prescheduled time.  
  30.  
  31.    This is great to load on unattended pc's for executing backups,
  32.    production jobs, batch files, etc...
  33.  
  34. TASKER FEATURES:
  35.    Jobs can be scheduled to run:
  36.    -   Every day.
  37.    -   Every business day (Mon - Fri).
  38.    -   Every day for a specific month.
  39.    -   On a specific day of the week every month.
  40.    -   On a specific day of the week for a specific month.
  41.  
  42.    Tasker has the flexibility of using any specified taskfile.
  43.    -   One way to use a specific taskfile is run Tasker from the same
  44.        directory as your taskfile (provided its name is TASKFILE.TXT).
  45.    -   You could also use the /t option and give tasker a full path and 
  46.        taskfile name (whatever name you choose).
  47.    -   If neither option is used, and TASKER.EXE is in your PATH, it will
  48.        use the default taskfile (same directory as tasker.exe)
  49.    -   This taskfile flexibility makes Tasker multi-user (LAN) compatible.
  50.      
  51.       For example: 
  52.  
  53.       If the tasker.exe file resides on a LAN everyone can use the same .EXE
  54.       (Multi-User Registration Available) and be able to specify their own
  55.       personal taskfile.
  56.  
  57.                                   - 1 -
  58.      LAN administrators can take advantage of the default taskfile feature
  59.       to have all LAN users use the same taskfile to execute LAN utilites 
  60.       off-hours so when they arrive their pc is ready for the day.  Have
  61.       users load Tasker before they leave for the day to:
  62.       -   Run virus scanning software.
  63.       -   Disk cleanup utilities.
  64.       -   LAN utilities.
  65.  
  66.  
  67.    Comprehensive and informative logging feature.
  68.    -  A log file keeps track of tasker activity, errors and other
  69.       information.
  70.    -  It will give you the status of the spawn, as well as, the return
  71.       status of most programs so you can see if your program had trouble.
  72.    -  Your logfile will reside in the same directory as your taskfile
  73.       by default.
  74.    -  You can also specify your own log file and location using /t.  This
  75.       is great for LAN user's so they can have their own log file.
  76.  
  77.  
  78.  
  79.    Screen redirection to a text file while tasks are executing.
  80.    -   By using the /redir option you can redirect all your screen output
  81.        to a flat file so you can see exactly how your task executed.  No
  82.        need to spend time wondering how a task performed while you were
  83.        away.
  84.    -   Save task activity for tracking purposes or see if any of your
  85.        programs generated any problems or errors.
  86.    -   The redirection file will alway reside in the same directory as
  87.        the taskfile.  This could be useful for LAN administrators to be
  88.        able to see exactly how each user's tasks performed.
  89.    
  90.    Does not necessitate a 'command /c' when executing DOS environment 
  91.    functinos such as: Copy, dir, ren, md, del *.*, etc...
  92.  
  93.    Swaps TASKER.EXE out of your conventional memory when your tasks execute.
  94.    -  TASKER.EXE will swap itself to EMS, if present.  If no EMS is present
  95.       it swaps TASKER to disk, thus freeing virtually all conventional memory 
  96.       TASKER was using so your tasks can run optimally.
  97.  
  98.  
  99.                                   - 2 -
  100.    No Schedule Conflicts
  101.    -   Tasker will execute ALL jobs scheduled even if one runs beyond the
  102.        execution time of the next scheduled task.  It will simply run the
  103.        next task immediately upon completion of the previous one.
  104.    -   It will still finish all scheduled tasks if one happens to run beyond
  105.        midnight.  Tasker will simply execute the remaining tasks in succesion.
  106.    -   Tasker will not miss early morning tasks should a task from the
  107.        previous night run beyond a scheduled job for the next day.
  108.        
  109.        Below is an explanation of the 'No Schedule Conflicts' feature:
  110.  
  111.        Example schedule for Tuesday and Wednesday morning:
  112.          Task 1 is scheduled for 4 pm on Tuesday.
  113.          Task 2 is scheduled for 4:15 pm.
  114.          Task 3 is scheduled for 11:30 pm.
  115.          Task 4 is scheduled for 11:45 pm.
  116.          Task 1 for Wednesday is scheduled for 1 am.
  117.          
  118.        Execution:
  119.          Task 1 executes at 4 pm but runs until 4:30.
  120.             Tasker will detect that Task 2's execution time has
  121.             been surpassed and immediately execute it.
  122.  
  123.          Task 3 executes at 11:30 but runs until 2am Wednesday morning.
  124.  
  125.             Upon the completion of Task 3, Tasker will detect that it is 
  126.             past midnight and immediately execute all remaining tasks for 
  127.             Tuesday in succession.
  128.             
  129.             Tasker, upon loading the tasks for Wednesday, will detect that
  130.             the previous night's Tasks have run over the execution time of
  131.             Task 1 and immediately execute it (and any other tasks that have
  132.             been surpassed).
  133.  
  134.  
  135.   
  136. REQUIREMENTS:
  137.  
  138.   Tasker will run on any AT compatible PC running DOS 3.3 & higher.  (an OS/2
  139.   version may soon follow)
  140.  
  141.   You can run tasker from a floppy (although loading will be slower) or
  142.   your hard disk.
  143.  
  144.   Tasker should be in your DOS PATH in order to utilize more of it's
  145.   features.
  146.  
  147.   Tasker needs about 100K of ram when its waiting to run or waiting for 
  148.   midnight.  Don't panic though because Tasker swaps itself out of RAM
  149.   when executing it's tasks.
  150.  
  151.   For windows, if you have a nominal amount of memory this should not be
  152.   a problem.
  153.  
  154.  
  155.                                   - 3 -
  156.  
  157. BASIC FLOW:
  158.  
  159.    Upon starting Tasker it will check the taskfile for any tasks that
  160.    might be scheduled for the rest of that day.  If any tasks are
  161.    present it will execute each task at their specified time until all
  162.    tasks have been executed.  It will then wait until midnight to read
  163.    the taskfile again and start the process over.
  164.  
  165.  
  166. O  Choosing your taskfiles:
  167.  
  168.       Most users will have just one taskfile (default) but for those who need
  169.       more than one taskfile, this section is for you.
  170.  
  171.       When you type TASKER (without the /t) Tasker will first look for it's
  172.       TASKFILE.TXT in the current directory.  If not present Tasker will 
  173.       look for the default taskfile.txt (same directory as TASKER.EXE).  If
  174.       that is also not present you will be informed that there are no tasks
  175.       present and to add tasks.
  176.  
  177.       You can specify your own taskfile name and location by using the /t
  178.       switch.  Example:
  179.  
  180.             TASKER /T C:\MYDIR\JIMSTASKS.TXT
  181.  
  182.       You can just use /T without the path/filename.  Tasker will prompt you
  183.       for a path/filename for your taskfile and log file (this is how you
  184.       can specify a log file in a different location than your taskfile).
  185.  
  186.       The /T switch can be used in conjuction with the /a, /d and /r options
  187.       as long as the option comes before /T.  Thusly:
  188.       
  189.             TASKER /A /T [PATH/FILENAME]
  190.  
  191.  
  192. O  Entering Tasks:
  193.  
  194.    -  To enter tasks type:
  195.  
  196.          TASKER /A
  197.  
  198.       Caution: If you have more than one taskfile be sure you are using 
  199.                the right one.  See 'Choosing your taskfiles'.
  200.  
  201.                                   - 4 -
  202.  
  203. O  Creating Tasks:
  204.  
  205.    -  To create a default taskfile (TASKFILE.TXT) type:
  206.  
  207.          TASKER /A  
  208.  
  209.       with no parameters.
  210.  
  211.    -  To create a taskfile in another directory use the /t option.
  212.  
  213.          TASKER /T C:\MYDIR\TASKFILE.TXT  
  214.  
  215.       Note:  keeping the filename TASKFILE.TXT will allow you to use this
  216.              taskfile just by typing TASKER from the same directory.  If the
  217.              filename is other than TASKFILE.TXT you will need to use 
  218.              the /t switch.
  219.  
  220.  
  221. O  Removing Tasks:
  222.  
  223.    To remove tasks type:
  224.  
  225.       TASKER /R 
  226.  
  227.    You will be prompted to 'Enter the Task Number to Remove'.  Type the
  228.    desired task number and Tasker will display the task along with an 
  229.    'Are You Sure' screen.  Your task will then be removed.  If you want to
  230.    delete all tasks just delete the taskfile and start over with a Tasker /A.
  231.  
  232.  
  233.    Note: If you have more tasks than can fit on your screen you will be
  234.          prompted to 'Continue Viewing' after the first screen.  If
  235.          you know what task number you want to remove, answer 'N' and the
  236.          removal steps will continue.
  237.       
  238.   Caution: If you have more than one taskfile be sure you are using 
  239.            the right one.  See 'Choosing your taskfiles'.
  240.  
  241.  
  242. O  Display your tasks for viewing:
  243.  
  244.    To display your tasks type:
  245.  
  246.       TASKER /D
  247.  
  248.    Note: If you have more tasks than can fit on your screen you will be
  249.          prompted to 'Continue Viewing' after the first screen full.
  250.  
  251.    Caution: If you have more than one taskfile be sure you are using 
  252.             the right one.  See 'Choosing your taskfiles'.
  253.  
  254.                                   - 5 -
  255.  
  256. O  Activating screen redirection to a flat file.
  257.  
  258.    To activate screen redirection type:
  259.  
  260.       TASKER [/t [path/filename] ] /redir
  261.  
  262.    Note: The /redir switch MUST be the last parameter.  Your redirection
  263.          file will always reside in the same directory as your selected
  264.          taskfile.  (The next version will be more flexable with the 
  265.          location of the REDIR.TXT file.)
  266.  
  267.  
  268. O  To use Tasker in a Windows environment:
  269.  
  270.    Add Tasks to your default taskfile using DOS then edit the PIF file for
  271.    the location of TASKER.EXE and any parameters (/t or /redir).  Tasker
  272.    will then function in the background while you do other things.
  273.  
  274.    You can load tasker (minimized) automatically every time you run windows.
  275.    To do this, add TASKER.PIF to the 'load=' command in your WIN.INI file
  276.    (first few lines).  Now Tasker will load up minimized and will execute
  277.    your tasks in the background.
  278.  
  279.    Note: Tasker is not a windows utility but by using the pif it can run
  280.    in a Windows environment.
  281.  
  282. FILE NAMES & LOCATIONS:
  283.  
  284.    File:                  File Name:           Location:
  285.  
  286.    Default Taskfile:          TASKFILE.TXT \ _ Same directory as 
  287.    Default Log file:          TASKLOG.TXT  /   TASKER.EXE.
  288.  
  289.    Taskfiles in other
  290.    locations:                 TASKFILE.TXT \   
  291.    Log files in other                        - Your choice of directories
  292.    locations:                 TASKLOG.TXT  /
  293.  
  294.  
  295.    Taskfiles by a name
  296.    other than TASKFILE.TXT    Your choice \         
  297.    Log files by a name                      -  Your choice of directories
  298.    other than LOGFILE.TXT     Your choice /
  299.  
  300.    Screen Redirection file:   REDIR.TXT         Same directory as your
  301.                                                 selected taskfile.
  302.  
  303.                                   - 6 -
  304.  
  305. HINTS:
  306.  
  307. O  If you plan on using only one taskfile I suggest you stick to the
  308.    default location (create it just by typing TASKER /A with no parms).
  309.    This way you will not have to concern yourself with /t.  For one 
  310.    taskfile this is the easiest way.
  311.  
  312. O  If you are going to use your own taskfile name you must use the /t switch.
  313.  
  314. O  Have TASKER.EXE in your path.  If you are unsure on how to do this look
  315.    up 'PATH' in your DOS manual.
  316.  
  317. O  If you are calling a batch file, use the DOS 'call' function in your
  318.    task, (ex. CALL TEST.BAT).  Tasker will act unpredictable if 'call' is
  319.    not used for batch files.
  320.  
  321. O  Command Line Piping functions do not work with Tasker unless called from
  322.    a batch file.  For instance, if you want to log in to a network and
  323.    pipe in a password you can 'call' a small batch file to do this.
  324.  
  325.       Example:  You want to login to a network and execute some commands.
  326.  
  327.             Task1:      call log.bat
  328.             Task2:      normal command1
  329.             Task3:      normal command2
  330.             Task4:      normal command3
  331.  
  332.       log.bat:
  333.             REM load Lan drivers if not already loaded
  334.             F:LOGIN jimmy <c:\mypass.txt
  335.  
  336.  
  337. O  You can edit your taskfile using a standard editor although it is quick
  338.    and easy to remove the task and re-add it using Tasker.  If you edit be
  339.    careful, if you misplace even one character other than the task, Tasker
  340.    will be unforgiving and produce an "Invalid Data in Taskfile" message or
  341.    otherwise perform unpredictably.  I was able to edit mine using Brief as
  342.    my editor and had no problems. I cannot guarantee what other editors
  343.    might do to the taskfile. 
  344.  
  345.    I realize I do not have a task edit feature yet, this is why I have
  346.    tasker write your tasks out to a flat file (instead of using encryption)
  347.    and allow minor editing.  An edit feature should be in the next version.
  348.  
  349.    Here are some editing tips:
  350.  
  351.    -  Make sure your last character in the taskfile is the last charactor
  352.       of your last task.  Do NOT add a carrage return.  Again, your file
  353.       should end at the end of your last task, not on the next (blank) line.
  354.  
  355.    -  It is advised to make a backup of your taskfile before you edit it.
  356.  
  357.  
  358.                                   - 7 -
  359.  
  360.    o  Here is how each line of the taskfile works:
  361.  
  362.       ########Task
  363.  
  364.       - The first 2 numbers represent the month (99 means every month).
  365.         The third number is the day of week (0 = Sunday, 1 = Monday, etc...)
  366.         9 means everyday.
  367.       - The next (fourth) number is a weekend switch, 0 if weekends included,
  368.         1 if just every business day (this number is ignored unless everyday
  369.         was selected)
  370.       - The next 4 numbers represent the time (hours and minutes, military time).
  371.       - The remaining characters is your task.
  372.  
  373.         Examples:  99500500call c:\jimslog.bat (every month, every Friday at
  374.                                                 5am call my login batch file)
  375.  
  376.                    99910700Virscan c: /a /v    (every month, every business
  377.                                                 day at 7am run a virus
  378.                                                 scanner with parms)
  379.  
  380.  
  381. NOTES:
  382.  
  383. O  This program shells out to execute your tasks.  You will see in the logs
  384.    and on screen a Spawn Status (ex. "Spawn Successful").  When a spawn is
  385.    successful this does not mean that your program was.  Tasker is just
  386.    letting you know it successfully spawned another command.com for your
  387.    program.  Please verify each of your program's success.
  388.  
  389. O  Be advised that if you decide to use tasker in a Windows environment,
  390.    Tasker does use approximately 90K of memory.  If you have a sufficient
  391.    amount of memory for windows than this should not effect the system. A
  392.    reminder that when tasker executes it swaps itself out of memory.
  393.       
  394. O  Because DOS environment calls (dir, ren, copy, etc...) normally would
  395.    require a 'command /c' for the spawn function and program files do not,
  396.    I have provided a feature so you would not have to decide if a
  397.    'command /c' is needed or not.  Tasker will first attempt to execute 
  398.    them normally, if this fails it will precede the command with a
  399.    'command /c' which will then function.  If your program returns an 
  400.    error, it will attempt to re-execute it with a 'command /c'
  401.    (transparent).  So, if you notice in your redir.txt file and log file
  402.    that it executed twice, this is the reason.
  403.  
  404.       For example if you tried to execute "TYPE C:\AUTOEXEC.BAT" and the
  405.       file does not exist, tasker will return the DOS error but it will
  406.       then try and run "command /cTYPE C:\AUTOEXEC.BAT" which will succeed.
  407.  
  408.      
  409.  
  410.                                   - 8 -
  411.  
  412.       
  413. O  If you have one of your tasks logging in or out of a Novell network, be
  414.    advised of the path errors you might receive depending on the following
  415.    scenarios:
  416.  
  417.       If you are already logged in and have search maps, and then you login
  418.       again through one of your tasks, Novell will append any search maps 
  419.       in your login script to your path (doubling your search maps in your
  420.       path) then after you logout, Novell strips only one set of search maps
  421.       off your path but your original set will still exist although you
  422.       will be logged out.  You will receive "invalid drive in search path"
  423.       errors.  Be careful.  Be sure you are logged out before any of your
  424.       tasks log you in.  Also, it is easiest to perform multiple network
  425.       tasks within a batch file.  If you login in one task your path and
  426.       environment can become unreliable.  A Novell Network is the only one
  427.       I have access to and was able to test.  Because it is a dos bases app
  428.       it would perform on other dos type networks just as well.
  429.  
  430.  
  431. THANKS:
  432.  
  433.    I would like to thank Ira Ashkenes (IJ Software) for all his insight
  434.    and support in creating this utility.  Also, thanks to F. PIETTE for
  435.    his ideas in screen redirection.  
  436.  
  437. SUPPORT:
  438.  
  439.    If you have any questions or problems do not hesitate to contact me at
  440.  
  441.        703-368-8990 (Virginia).
  442.        
  443.    If there's no answer leave a message and I will promptly return your call.
  444.  
  445.    I can also be reached electronically on CompuServe.  My mail address is:
  446.    
  447.    72713,713.   
  448.  
  449.    Thank you for trying Tasker.  
  450.  
  451.  
  452.    JIM
  453.  
  454.  
  455. LEGAL MUMBO JUMBO
  456.  
  457.   These documents and all referenced and related program files are
  458.   copyrighted by SkinnyMan Applications and is protected under the 
  459.   copyright laws.
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.                                   - 9 -
  473.  
  474.  
  475.  
  476.  
  477.       
  478.       
  479.       
  480.       
  481.       
  482.       
  483.       
  484.       
  485.       
  486.       
  487.       
  488.       
  489.       
  490.       
  491.       
  492.       
  493.