Monday, September 26, 2011

remember tao_root

When generating the workspace using mwc (Make Project Creator) and you get the error

ERROR: Unable to locate parent: tao_versioning_idl_defaults

be sure to set your TAO_ROOT variable to the TAO location.

Thursday, September 8, 2011

see the defines in gcc g++

touch test.h
g++/gcc -E -dM test.h

Friday, September 2, 2011

single shell line for

for fle in `find . -name '*vs8*' | grep -v '.svn'`; do \
export newfle=`echo $fle | sed -e "s/vs8/vs10/g"`; \
if [ ! -f "$newfle" ] ; then \
cp "$fle" "$newfle"; \
else \
echo "$newfle" already exists; \
fi \
done



note the semicolons and export(to use the variable name)

pass define to make

make CPPFLAG+=-Ddefine_name=value

Tuesday, November 16, 2010

locating commands in linux

which (tracks through $PATH)
alias (shows aliases)
declare -F (shows bash functions)


bash function reminder came from
http://unix.derkeiler.com/Newsgroups/comp.unix.solaris/2007-04/msg00957.html

Monday, July 26, 2010

command line vmware

The vmrun command is used to run from the command line.

For running on linux with vmserver 2

vmrun -T server -h https://localhost:8333/sdk -u Username \
-p "PasswordWithSpecialCharsEscaped" list

vmrun -T server -h https://localhost:8333/sdk -u Username \
-p "PasswordWithSpecialCharsEscaped" start "Exact vmware name of vmx"

Exact vmware name of the vmx : "[standard] Name/Name.vmx"
Watch out for extra spaces or other white space.

Thursday, July 15, 2010

solaris 10 fault manager

fmadm is the fault manager - requires root to work