problems with pkgmk and request script

From: jd (jedrzej_dudkiewicz_at_poczta.interia.pl)
Date: 07/21/04


Date: Wed, 21 Jul 2004 11:42:57 +0200

Hello,

I've got the following problem:

I have to create a small package, that optionally adds entries to crontab
and inittab. In 'request' script I ask user if he wishes these entries to be
added and to enter schedule for crontab (if he wants one, of course). After
all that, I do the following:

[ "${ctab}" = "y" ] && CLASSES="${CLASSES} cron"
[ "${itab}" = "y" ] && CLASSES="${CLASSES} itab"
SCHED="${ctabSched}"

I got SCHED variable set in pkginfo script.

Unfortunately, this variables are unchanged in Class Action Scripts.

I tried exporting these wariables and writing to $1 ( that is - a response
file ), all in vain. I checked archives of this group ( through google ) and
used google to find something about it, but all I found - wasn't working.

Please note, that telling me to check "an excellent sun document"
"Application Packaging Developer's Guide" is futile, as examples given at
the end of this document doesn't work on my system. I got Solaris 2.6 (
SunOS 5.6 ) ( a little old it is, isn't it? ).

TIA,

JD



Relevant Pages

  • ANSWER: wtmp filling up fast... What are these entries?
    ... It turned out that the rsh entries were not the problem, ... The real problem was due to a script that another engineer added to crontab. ... was actually exponentially increasing the size of wtmp. ...
    (AIX-L)
  • Re: Help!!! GPG (GnuPG) & PHP: system Safe Mode workarounds?
    ... Create a script that stores all e-mails in a database. ... Install a script in crontab that checks this database for new entries ...
    (alt.php)
  • Re: Adding entries to crontab by a script
    ... - I want to add entries to crontab by a script. ... The thing is that I need to add the same entry to crontab on each ...
    (comp.unix.shell)
  • Re: gnome-upgrade.sh
    ... > portupgrade ruby package) - it'll spit out the appropriate sections ... > portmanager format is ... > # START entries come from AFTERINSTALL ... Barring no more bugs to squash I'd like to start incorporating your script ...
    (freebsd-stable)
  • Installation of software, and security. . .
    ... installation in Windows and various package managers. ... A setup.exe program coded by some third party such as Real Networks ... A .msi Microsoft Installer package is unpacked, and a script coded by ...
    (Bugtraq)