DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Packaging your software applications

Installation class action script (i.cron)

   # PKGINST parameter provided by installation service
   

while read src dest do user=`basename $dest` || exit 2

(crontab -l $user | sed -e "/#$PKGINST$/d" > /tmp/$$crontab) || exit 2

sed -e "s/$/#$PKGINST/" $src >> /tmp/$$crontab || exit 2

crontab $user < /tmp/$$crontab || exit 2 rm -f /tmp/$$crontab done exit 0


Next topic: Removal class action script (r.cron)
Previous topic: prototype file

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003