poor mans watch, watch for solaris
Here is a simple script that you can use as watch in Solaris as well.
watch() { #Poor man's watch while (true) do clear $* sleep 2; done }
Here is a simple script that you can use as watch in Solaris as well.
watch() { #Poor man's watch while (true) do clear $* sleep 2; done }
If you work regularly on a Solaris or systems which do not have the “-r” (recursive grep) for grep, then you know what a lifesaver this command can be.
Here is one from command line fu:
find . -type f -exec awk '/linux/ { printf "%s %s: %s\n", FILENAME, NR, $0; }' {} \;
The benefit of using awk here is that you can print the line number also 🙂
Continue readingIf you are working on recent versions of the *nix OS like Fedora or Ubuntu then you would know about the commad ssh-copy-id. But if you land up using one of the older versions like Solaris or something where the command is not present, then probably you need a simpler solution to this. One of the simplest solution is with a lot of assumtions, simply copy the id_rsa file to remote server and hope it works. And here is a script to do just that:
Continue readingI had to debug a solaris crash dump and had no ides. Google search wasn’t much useful until finally I found this article:
http://cuddletech.com/blog/?p+AD0-448
have a look at this article, this suggests how to debug the core and find the offending process and root cause of the core in case of kernel panic.
If you are behind a firewall and install some software like top or wget then you can not use sunfreeware, and why because ftp is blocked. Now that is not the case any more, you can go the http mirror site of sunfreeware and here is the link for the same
Note: you just need to change the words in bold for sparc or i386 and version of the solaris.
Continue readingToday I was working with <a class="zem_slink" title="Solaris (operating system)" rel="homepage" href="http://oracle.com/solaris">Solaris and after I had set up the <a class="zem_slink" title="NIS+" rel="wikipedia" href="http://en.wikipedia.org/wiki/NIS%2B">NIS+, <a class="zem_slink" title="Name server" rel="wikipedia" href="http://en.wikipedia.org/wiki/Name_server">DNS server, IP Address and completing the basic setting. I was using the pkg-get util from the freesunware.com
The utility was using wget and it was failing constantly. From the looks of it, it was very clear that the wget utility was unable to find the <a class="zem_slink" title="IP address" rel="wikipedia" href="http://en.wikipedia.org/wiki/IP_address">IP address from the name. <a class="zem_slink" title="Name resolution" rel="wikipedia" href="http://en.wikipedia.org/wiki/Name_resolution">Name resolution was not happening, while dig and <a class="zem_slink" title="Nslookup" rel="wikipedia" href="http://en.wikipedia.org/wiki/Nslookup">nslookup was able to do the DNS lookup.
Continue readingPlease consider donating to the authour of the book if you can afford to. The book is really good.
<a href="http://teachmesun.com" target="_blank">http://teachmesun.com