Solaris

bash script with sql to get the number of records from multiple tables.

bash script with sql to get the number of records from multiple tables.No Gravatar Hot: Here is the bash script: #!/bin/sh names[1]=errorlog names[2]=amit1log names[3]=amit2log names[4]=amit3log names[5]=amit4log j=1 echo $1 for i in $( sqlplus amit/passwd@tns @get_count.sql |sed  -n ‘/COUNT/,/Disconnected/p’|sed ‘/COUNT/ d’|sed ‘/—/ d’|sed ‘/Disconnected/ d’|tr ‘n’ ‘ ‘  ) do temp=${names[$j]} let count=30-${#temp} for ((I=1; I <= $count ; I++)) do printf ” ” done echo  “${names[$j]}    : $i” # echo $j let j=j+1 done echo echo More > Sharevar el = document.getElementById('share-link-549716769');el.params = {title: 'bash script with sql to get the number [...]

Technorati Tags: bash, oracle, script, Solaris, sql

Blog Traffic Exchange Related Websites

More solaris commands

More solaris commandsNo Gravatar Hot: These commands are taken from various sources and are quite helpful for day to day work on solaris. For find n grep grep -i m_forwardingProxy `find . -name \*cpp` grep -i XVarBind `find . -name \*h` grep -i gSLEncodeMode `find .  -name “*.cpp” -o -name “*.h”`   Find: find . \( -name “*.cpp” -o -name “*.h” -o -name “*.c” -o -name “*.cc” [...]

Technorati Tags: Solaris, user commands

Blog Traffic Exchange Related Websites

Determine what process is listening on a port on Solaris, without lsof

Determine what process is listening on a port on Solaris, without lsofNo Gravatar Hot: Image by Metsuke iLife via Flickr More > Sharevar el = document.getElementById('share-link-89693033');el.params = {title: 'Determine what process is listening on a port on Solaris, without lsof', link: 'http://blog.amit-agarwal.co.in/2010/01/14/determine-what-process-is-listening-on-a-port-on-solaris-without-lsof/', skin: 'blue', content: 'http://blog.amit-agarwal.co.in/?ibsa=get_content&id=1492'};

Technorati Tags: awk, free, google, grep, Languages, programming, search, Search Engines