home *** CD-ROM | disk | FTP | other *** search
- What, a new version so soon?
- ============================
-
- Yes, it has been brought to my attention that there was a minor bug
- in version 1.0 which needed to be fixed. The bug was a logic error
- in which if either the day-of-month or the day-of-week field was set
- to '*', the command would be executed every day. This has been
- fixed!
-
- I was also asked for the following: command stacking and alternate
- logging.
-
- command stacking works like this:
-
- * * * * * cmd1; cmd2; cmd3; cmd4
-
- You can now execute a series of commands at a certain time as
- opposed to just one. Any switches become set for the line (aka
- local) unless explicitly reset.
-
- eg:
- * * * * * -c20 cmd1; cmd2; -c80 cmd3
-
- will set the maximum conventional memory to 20K for cmd1 and cmd2,
- then to 80K for cmd3. this works for all switches. unfortunatly
- there is no "undo" for "-h" (hide) or "-b" (background) so once
- either of these is set, it remains in effect for the rest of the
- line.
-
- Multiple commands on a line are started as multiple concurrent
- processes. In other words in the above example, cron DOES NOT wait
- for the completion of cmd1 before starting cmd2 and cmd3 so BE
- CAREFUL not to run short on memory if you start multiple processes
- simultaneously.
-
- A request was also made for local log files. The format is
-
- * * * * * -l cmd.log cmd1; cmd2
- * * * * * cmd3
-
- This will send any log entries to the file cmd.log as opposed to
- whichever log file was set when cron was first loaded. the log file
- is local to the line, so in this example cmd1 and cmd2 would both
- log to "cmd.log" while cmd3 would log to whatever file was set at
- startup.
-
- Note:
- Some shell programs (sh, csh, and others) use the ';' to stack commands
- which need to be executed in a specific order. this can be accomplished
- using two consequtive ';' as in ";;"
-
- * * * * * cmd1 parm ;; parm2 ;; parm3 ; cmd2
-
- will execute cmd1 with a paramter string "parm1 ; parm2 ; parm3"
- then will setup a seperate task to run cmd2 without any parameters.
-