Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!iscuva!ricks From: ricks@iscuva.ISCS.COM (Rick Schaeffer) Newsgroups: comp.sys.amiga Subject: Amiga Cron Binary & Doc Message-ID: <886@iscuva.ISCS.COM> Date: Sat, 7-Nov-87 17:53:59 EST Article-I.D.: iscuva.886 Posted: Sat Nov 7 17:53:59 1987 Date-Received: Tue, 10-Nov-87 06:38:04 EST Organization: ISC Systems Corporation, Spokane, Wa. Lines: 324 For those who don't have Aztec C I thought I'd also post the uuencoded binary and Doc for AmiCron. # This is a shell archive. # Remove everything above and including the cut line. # Then run the rest of the file through sh. #----cut here-----cut here-----cut here-----cut here----# #!/bin/sh # shar: Shell Archiver # Run the following text with /bin/sh to create: # Amicron.doc # Amicron.uue # This archive created: Sat Nov 7 12:39:13 1987 cat << \SHAR_EOF > Amicron.doc AmiCron - Cron task for the Amiga This is a rather crude but effective version of the Unix (tm) program known as "cron" modified to run on an Amiga. For those who aren't Unix knowledgeable, cron is a background task which uses a disk-resident table to automatically run certain tasks on a regular basis. The cron table's format is very simple...it contains entries in the form of lines where each line has 6 fields and each field is separated by "white space" (either tabs or spaces) from it's neighbor. The fields are as follows: 1. Minute (0-59) 2. Hour (0-23) 3. Day (1-31) 4. Month (1-12) 5. Day of week (0-6 where 0=Sunday and 6=Saturday) 6. Command This is the command to be run at the appointed time. It will be run just as if typed into the CLI. Each of the first 5 fields are numbers. However, it is permissable to use an asterisk (*) in a field to mean ALL possible numbers for that field, and you can specify a series of numbers separated by commas (,) and ranges separated by dashes (-). For instance, in the Day field you could specify "1,5,10" to mean the first, fifth, and tenth days of the month; or you could specify "1-15" to mean the first through the fifteenth of the month. Here are some examples of Amicron table entries: Print the date in the crontask window every minute: * * * * * date Print the date in the crontask window on the hour, every hour: 0 * * * * date Run uupc at 4:30 am every day except Sat and Sun: 30 4 * * 1-5 uupc -siscuva Incrementally backup the files every other day at 7:30 pm: 30 19 * * 1,3,5 sdbackup -l -s LAST dh0: incbkup_1: Backup the files on the 1st and 15th of each month at 1:00 am: 00 01 1,15 * * sdbackup -l dh0: SemiBkup_1: The Amicron table file is located using the following path: sys:usr/spool/cron/crontab and errors, if any are logged into the following path: sys:usr/spool/cron/cronerr Crontab entries *MUST* be left justified starting in column 1 and each entry must contain 6 fields, each separated by spaces or tabs. To run Amicron, you must first set up the directory "sys:usr/spool/cron" and then use your favorite editor to create the "crontab" file. Amicron needs a CLI window for displaying the output of the commands it runs...but it can be made as small or large as you wish. Assuming that you have placed Amicron in your command directory (c:), you can start it by typing the following line into a "newcli" window: Amicron Then you can size and move the window anywhere you want, just be sure not to type anything else into the window because that would prevent cron tasks from running. I have an entry in my startup-sequence file that looks like this: run newcli con:0/140/160/50/CronTask s:startcron The "s:startcron" file contains one line: Amicron This automatically sets up a tiny CronTask window and runs Amicron in it. This program was originally written by Steve R. Sampson (UUCP: sys1!killer!sampson), who very kindly responded to my request for a PD cron that I could port to Minix. I haven't done that yet (My new Amiga 2000 came in right after I received the cron program ) but will do so ASAP. The modifications to make it run on the Amiga were very minor! Rick Schaeffer UUCP: seismo!uunet!iscuva!ricks E. 13611 26th Ave. Phone: (509)928-3533 Spokane, WA 99216 SHAR_EOF cat << \SHAR_EOF > Amicron.uue begin 777 Amicron M #\P # ( AN !0 $ /I (;D[Z"BI. M50 2'H 4TAZ #1.N@3@4$\I0(-Z9A1(>@!!3KH%<%A/2'@ 4ZZ'2I83V$R M2'@+ADZZ'KI83V#R3EU.=5-Y "$2&W_?$ZZ =A/[P ,2H!F$BE\ 8-R< !,WP003EU.=4'M M_WPD2'@ 8!XO"B $Y8!![( "+S ( &$F4$\D0$J 9@1P H2XO 5M MVB\*2&R$PDZZ#GA03W !8+A.50 2.< ,"1M @F;0 ,#!, (&<6#!, "6<0 M2A-G#"!+4HLB2E**$I!@Y$H39@IP $S?# !.74YU0A(,$P @9P8,$P )9@12 MBV#P( M@XDY5 !(YPX@)&T ""@M QZ $AZ 18O"DZZ#=903TJ 9@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HP@;P $((A8D$*H 0A2 (3G4@;P $3.\" 0 ( M(B\ $"QL@S9.[OY$3OH BQL@S8B;P $("\ "$[N_=@B;P $+&R#-D[N_I@B M;P $+&R#-D[N_H9,[P # 0L;(,V3N[^SB!O 0L;(,V3N[^@$SO P !"QL M@WY.[O^@(&\ !"QL@WY.[O^F(&\ !"QL@WY.[O^R /L 0 $ M J@ _( /J PP X / $ !$ 2 <@ M !R*P G< ,!=RL P)A ) 6$K D"> M !0%X*P % @ 06 $&$ !!P 0@ $)0 !"@ M 0N $,P !#A 0]0 $08 + 'P !P ? '@ !\ M > 'P !\ > 'P !X ?,#$R,S0U-C 'P " A /R #ZP $ # /R end SHAR_EOF # End of shell archive exit 0 -- Rick Schaeffer UUCP: uunet!iscuva!ricks ISC Systems Corp. ricks@iscuva.ISCS.COM Box TAF-C8 Phone: (509)927-5114 Spokane, WA 99220