Execution of commands in %post

Jesse Keating jkeating at j2solutions.net
Wed Mar 22 08:00:28 UTC 2006


On Tuesday 21 March 2006 23:41, Dan Trainor wrote:
> Hi -
>
> It's late.  How about I also provide an example of the kind of command
> which I'm trying to execute:
>
> /path/to/command write /path/to/destination/file 3301 100 $SLSQLUID
> STRING1 $SQLUSER $SQLPASS 0 3306 127.0.0.1 theDatabase
>
> I've tried most every variation of a one-liner which I can think of.
> Calling the variables ${VARIABLE}, doing `echo ${VARIABLE}`, and so on.
>   I can't get them to print their values.  I can only get them to print
> their literal values.

It would be best to put your commands into a bash script and call this script 
from %post.  wget it from a web address (no DNS use IP) and then execute it.

-- 
Jesse Keating RHCE      (geek.j2solutions.net)
Fedora Legacy Team      (www.fedoralegacy.org)
GPG Public Key          (geek.j2solutions.net/jkeating.j2solutions.pub)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20060322/31aa1647/attachment.sig>


More information about the Kickstart-list mailing list