[comp.os.minix] Cron

bing@galbp.LBP.HARRIS.COM (Bing Bang) (02/16/88)

i just noticed somebody posted a cron clone and just wanted to warn people
that if you put this cron in your /etc/rc, this may screw up the tty signal
handling for those of you who are using multiple screen tty drivers.


-- 
Bing H. Bang      +--------------------------------------------------------+
Harris/Lanier     |OS/2 on PS/2: Half an operating system on half a machine|
Atlanta GA        +--------------------------------------------------------+

boh@culdev1.UUCP (Brian O'Halloran) (03/25/88)

Could some one please give me a hand.  I'm trying to get the recently
posted version of cron up on MINIX 1.2, but I'm having some problems as
I have noted below.  Any help would be greatly appreciated and I will
post summary on comp.os.minix.
 
o	The line in rc "/etc/update &" does not work when "/etc/cron &"
	is anywhere in rc.
o	If I have "/etc/cron &" alone in rc by removing "/etc/update &"
	cron works fine.  Likewise if I have "/etc/update &" alone in rc update
	works fine.
o	After rc is executed the process counter (F1) for "/etc/cron &"
	increments at a rate consistent with what one would expect until
	the first process counter for "/etc/update &" increments.  At that
	point they both freeze forever.  It seems as if when update returns
	from sleep(30) that both tasks freeze.
o	If I "/etc/cron &" after I logon to /usr/ast from /bin/sh cron
	works fine.
o	I have changed sleep() in cron.c to pass various times from 1 to 60
	with the same results as above.

Here is my rc;

/bin/clr
/etc/mount /dev/hd1 /minix
/etc/mount /dev/hd2 /bin
/etc/clock > /tmp/temp.file
/bin/date -q < /tmp/temp.file > /dev/null
/bin/rm /tmp/temp.file
/etc/cron &
/etc/update &

I have a clock routine which reads the AT clock.  If I replace this with
the line /bin/date -q < /dev/tty I still get the same results as above.  If
I flip the two lines from
/etc/cron &
/etc/update &
to
/etc/update &
/etc/cron &
I get the same results as above.
It appears as if I am causing a deadlock for the clock resources which both
update and cron use.  Do you have any ideas?  Yesterday I installed ast's
fix for deadlock and I still have the problem.

I am using an IBM PC/AT (6MHz), 640K RAM, 1408K extended,
30MByte hard disk, EGA, MINIX 1.2 with fix for boot from hard disk and load
root into extended memory.

Thanks,
Brian P. O'Halloran
boh@culdev1.uucp

bevan@ecr.mu.oz.au (Bevan Johnson ANDERSON) (02/20/91)

Hello all.

I have a strange problem.
Sometimes when I am using elvis, and I am happily edditing away,
suddenly I get an 'Alarm clock' message, then a prompt.
After this the machine locks up and I have to reboot.

I don't have a cron job running( I think... ie I don't explicitly aski
for one), but I seem to recall others with this problem.

Thanks in advance, 

Bevan.

waltje@uwalt.nl.mugnet.org (Fred 'The Rebel' van Kempen) (03/03/91)

Gentlemen (any ladies out there?) ,

The cron program I posted some time ago still crashed on some
(especially slow or very busy) systems.  Since it did not have
anything to do with memory availability, it had to be somewhere
in the signalling part of cron.  So, we at NLMUG hacked up the
cron program to use a different approach.

The result is a cron that can only be killed by stabbing it in
the back (i.e. kill -9 pid).  It is as steady as a rock on all
systems at MUGNET-NL.

I therefore hope that I my subject line is justified.  Please
find out for yourselves, and please report any problems to me
if you encounter any...

Enjoy-
	The Rebel
--
table
 !"#$%&'()*+,-./0123456789:;<=>?
@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
begin 644 cron.c.Z
M'YV-+U2 &"+GC1L0+4",8?-FS!H09,*4:6/018*+0>K00?-&C@X04UQ(<0$Rz
M3!LX<PR"4/%"@8* "E8J+.CFXL*&#R-.K!A3Q46"*M/, ;&QC$*&#B%*I.B&y
M)(@D=$ ()9H'3IHQ8=BPR0-B#ITP<NB4(0.B#AP09@JVZ7FQ:-<\7B=*=9.&x
M3IJL:?2$L:O23!HV1E&\*$-GS LY8T!T!#&X\(LT=.E\%9,"A)@\;!.X3>(Dw
M"140< J>D6/21<_,2<QT_1IVK&6N:,*X(5L71)LZ7BT;)6/0Z&6B:(S.,5M&v
M#N[BIE=FG@)YC-':4\,0-;Y[J4$6,U6&T?BFS=ZK6;>"UCBT[IPR;%1#SNQ6u
M3!B'H]_4F8V=SAL0<M"7"7->*IVA8QA$1T%L$%5<&Y!EY51JV1TD5&;'D8%=t
M;<:Y,51X2N6!W1QPE#$;9&?8]D9N;ZCW'U%IM&$4?X"5 4=R/B7PA!O.@2 =s
M@FYH]%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-EQH6EHG!8@)T+Q<=ZK=B<N2F[#^><N"^K%8*TZBPK6_W+Q7BP)96\R4ZY\&l
M=Q$@B;]81,>T:Q1Z++]__*Z"?!"E2@?\92.JBCQ2?!'='+*4**.J:A3M6<<Rk
M@03% <2V*AQV0;PI["2_%AQ)(6+&5!PZ$WYGD,F@PE<DD00'L3&\>"I'/"2Pj
MVLF97(\78:-D(:FMG)D["E ]2A,?D<.&<LTJ;*0FNJ2 Z*3D'*O>7) 7X:3Hi
M3*,D3+M3@<)& 0=@X2T=^= ,U<&8\ZKM6=']!+<8G;Z*H1KR:P8E.A8N -+Gh
MG*HJ3<T(N7F?RDCU7,2I\D+G!QH%X1Q%-<-Z]R+C'(AB%Q@*[,W)>C)M!P*Ig
*W,%,F@ "^5,_!4CUf
 e
end
--
MicroWalt Corporation, for MINIX Development	waltje@uwalt.nl.mugnet.org
Tel (+31) 252 230 205, Hoefbladhof  27, 2215 DV  VOORHOUT, The Netherlands

HATICE%TRMETU.BITNET@cunyvm.cuny.edu (Hatice Kuey) (03/06/91)

I am lady and I think there are a lot of ladies in the world which
u can not see?
where are you living ?