home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
c
/
cron093.zip
/
CHANGES.DOC
next >
Wrap
Text File
|
1993-01-05
|
6KB
|
137 lines
Changes made to cron 0.93:
-------------------------
- for some reason (lack of sleep?) cron was not compiled properly,
and as a result, would abend when spawning a task.
Changes made to cron 0.92:
-------------------------
- you can now re-scan the crontab file while cron is running,
instead of having to restart. Use r/R from the cron session.
- one of the most requested features was to have cron automatically
rescan the crontab file to pick up new changes. I really didn't
want to do this, since the standard cron doesn't; it would also
require substantial re-working of the code. But HEY, it was the
first day of the new year, so I said, 'What the hell!'. So, by
cleaning up the code and adding a few lines, I was able to add
re-scanning of the crontab file every n seconds. To use this
feature, use -r with or without an argument (seconds). If no
argument is specified, 5 minutes is assumed. Minimum interval is
15 seconds. Unfortunately, there is no way to have a thread
notified when a file is changed (in standard C - it could probably
be done with SOM), so I have to check every n seconds.
- To prevent accidental termination of cron, you can now tell cron
to ignore Ctrl-C/Break messages (SIGINT) from OS/2. When this
option (-i) is enabled, you can only terminate cron directly by
using Ctrl-Alt-Q. You can still kill the process (by sending cron
a SIGTERM), however.
- d/D will display a list of command and arguments that are currently
defined to cron. This is more of a debugging tool, but I thought it
might be useful.
Changes made to cron 0.91:
-------------------------
- lines may now be split across two lines, to make reading the file
a little easier. As a result, a ';' is required to terminate the
cron entry
- additional options are now available, which appear after the
optional command arguments string. The available options are:
:: title="title of window"
:: fgbg=[fg|bg]
:: type=[def|wvio|fs|pm|vdm|wvdm]
:: control=control_options (see below)
:: pos=(#,#,#,#)
[a|b|c] means choose ONE of a, b, or c
title="title of window"
this is the string that will be displayed in the title bar of
the window when it is visible. If this is not specified, the
title defaults to the invocation name of the command.
fgbg=[fg|bg]
sessions can be created to either being in the foreground or the
background of the desktop. The default is background. NOTE: if
cron is not the current foreground session (it has the focus)
specifying a task as fg will cause an error, since OS/2 will
not let a background session start a foreground session (go
figure!)
:: fg - create session as a foreground session
:: bg - create session as a background session
type=[def|fs|wvio|pm|vdm|wvdm]
this specifies the type of session that is to be started. OS/2
by default will probably create the correct one - you should
only use this option to specify that a session is to be a full
screen VDM session or an OS/2 full screen session. Choosing the
wrong value will lead to spawn errors. Here is what the options
mean:
:: def - default mode, let OS/2 choose the type
:: fs - OS/2 full screen session
:: wvio - Windowed VIO session
:: pm - Presentation Manager Program
:: vdm - virtual dos machine (full screen)
:: wvdm - windowed VDM
control=control_options (see below)
For each session, you can specify a number of options. These
options are:
:: vis - window is to be visible
:: invis - window is to be invisible
:: max - start session maximized
:: min - start session minimized
:: nac - no auto close on window session - this option
is only applicable to Windowable VIO sessions
- it is ignored for all others.
:: setpos - specify screen position for the window - if
you specify this option, you must also include
the pos=() option. If you don't, the window
will have zero size, and will not be
displayed.
These control options can be combined using the '&' operator. See
the below for an example.
pos=(x,y,cx,cy)
If you specify control=setpos, you should also specify the
screne positions. Arguments 1 and 2 specify the lower left hand
corner of the scren, and 3 and 4 speicfy the size in the x and y
directions, respectively.
Examples:
Let's create a crontab entry that will start a windowed dos
session at 00:15 on the first day of the first 6 months of the
year. To really make things interesting, lets position the
screen at (50,50) and give it a width of 100 pixels, and a
height of 75:
15 00 1 1-6 * "c:\os2\mdos\command.com" "c:\bin\test.bat"
title="This is a test session"
type=wvdm
control=vis&setpos
pos=(50,50,100,74);