Oh BTW, in some places grep -f is used which is specific functionality in XPG4 grep that is not available otherwise, so that dependency has to remain.
Regards, Moinak. On Tue, Dec 16, 2008 at 3:33 PM, Moinak Ghosh <moinakg at belenix.org> wrote: > On Tue, Dec 16, 2008 at 9:32 AM, sanjay nadkarni (Laptop) > <Sanjay.Nadkarni at sun.com> wrote: >> >> As some of you might now know, I have been struggling to run >> distro_constructor in a zone. However I keep running into annoying >> little issues. >> >> First, "cp" was explictly called using /usr/gnu/bin/cp!!! Since I did >> not have the gnu-utils that failed. Now I discover grep "/usr/xpg4/bin/grep >> >> Looking at the where these are called, it appears that "cp" and "grep" >> found in the standard path are just fine. Perhaps it might be better to >> set a known path at the start of the script and then invoke the commands. > > > http://src.opensolaris.org/source/search?q=gnu%2Fbin%2Fcp&defs=&refs=&path=&hist=&project=%2Fcaiman > Why is cp being used at all ? > > In Python shutil.copyfile(src, targ) does the job just as well. > XPG4 grep is being used since > /usr/bin/grep does not support '-q'. I'd say using grep ... > > /dev/null is more portable. > > Regards, > Moinak. > -- > ================================ > http://www.belenix.org/ > http://moinakg.wordpress.com/ > -- ================================ http://www.belenix.org/ http://moinakg.wordpress.com/
