Solaris
More solaris commands
2010/06/29
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` …
ack on solaris – grep recursively.
2010/06/25
<span style="background-color: #ffffff;">Some days back I posted an article on ack <a href="http://blog.amit-agarwal.co.in/2009/08/24/more-powerful-grep-ack/" …
for loop in bash script on solaris without seq
2010/06/11
Today I was working on a solaris box and wanted to do a watch. watch command is not available on Solaris 8 by default and I did not want to install it just for this small one time job. So I wrote …
Solaris Tips and Tricks
2010/05/19
Find a list of Tips and Tricks <a href="http://sysunconfig.net/unixtips/solaris.html">here. A nice trick to list the process which has opened a particular port is : #!/bin/ksh …
Linux tip to find the pid/program using a particular port
2010/05/12
netstat -lpn Technorati Tags: <a class="performancingtags" href="http://technorati.com/tag/port" rel="tag">port, <a class="performancingtags" …
View entire process string
2010/05/06
$ /usr/ucb/ps -auxgww Depending on your installation, when you run ps you will only get the first 40 or so characters displayed. In order to view the entire string, use /usr/ucb/ps on <a …
Running Nested X server
2010/03/25
Today I was trying to do a XDMCP connection to the other server ( which is solaris, not sure if that matters) so I used the Xnest server. and used the following command: […] Xnest :1 -ac -query …
Solaris commands.
2010/03/21
prtdiag vmstat iostat uname -a Will update this shortly with the details for these commands.
bash script with sql to get the number of records from multiple tables.
2010/02/10
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 …