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/
