from the ksh93 prompt what does this produce: for ((i=1;i<600;i++)); do printf $'%3d %s\n' $i "$(getconf "SI($i)" 2>&1)"; done | grep -v undefined
on a solaris 10 machine PLATFORM is sysinfo(513) and produces SUNW,SPARC-Enterprise -- Glenn Fowler -- AT&T Research, Florham Park NJ -- On Sat, 09 Aug 2008 09:19:03 PDT Rob Clark wrote: > > rlhamil Mar 28, 2008 6:28 PM wrote: > > getconf -t|grep PLATFORM > > gives nothing at all. > I was looking for a cross platform way to determine the OS's boot mode and > came across this post. > I'm running "Solaris Express Community Edition" snv_93 and I can confirm that > "getconf -t|grep PLATFORM" > prints nothing. > Since I am using Bash I type the command a little differently: > # ksh93 -c getconf -t | grep PLATFORM > # > Here are two other problems (bug / missing info): > # ksh93 -c getconf -t | grep undefined | wc -l > 124 > # ksh93 -c getconf -t | grep error | wc -l > 73 > # > It would be great if this gets fixed.