Re: Execution of commands in %post

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

 



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: pgpJPRIMiXtJ6.pgp
Description: PGP signature


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux