[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Execution of commands in %post



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)

Attachment: pgpQb2BwqVaPP.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]