faster bash operations on files with File Descriptors.

2011-06-11 2 min read Bash Learning Linux

I was writing a bash script that would do some operations and read and write to file. Seems that that was pretty simple with

  <td>
    <div class="text codecolorer">
      while read line<br /> <br /> do<br /> <br /> done<file
    </div>
  </td>
</tr>
1
2
3
4
5

and then use redirection operations like “>” and “»” to write to file. Done with the script pretty fast. So far so good, when I went for real life tests, no one was interested in using it, why? Simple, it was simply taking too long. The file was reading about 10K lines and writing about 50 lines and was taking about more than 10 minutes.

Continue reading

N900 starts showing junk characters

2011-06-08 1 min read Maemo N900

Well, sometime back I bought N900, some snaps here. And sooner than later I started playing with it. In an effort to reduce the disk usage for the “/” (root) partition, I removed some packages that were taking too much of space and managed to get the mobile to a stage where a lot of applications started displaying strange and junk characters and also cannot use package manager any more…errors reported.

Continue reading

Solaris dump analysis

2011-05-18 1 min read Solaris

I 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.

Enhanced by Zemanta

browsing the windows machines and their shares – listing

2011-04-30 1 min read Learning Uncategorized

 

smbtree is a very nice command to check all the machines that are present in the LAN (your connected network). For this to work you may need to look at this article also.

 

  <td>
    <div class="text codecolorer">
      smbtree -U <strong>username
    </div>
  </td>
</tr>
1
Enhanced by Zemanta

10 Useful Sar (Sysstat) Examples for UNIX / Linux Performance Monitoring

2011-04-22 3 min read Learning Linux

10 Useful Sar (Sysstat) Examples for UNIX / Linux Performance Monitoring

by Ramesh Natarajan on March 29, 2011

Using sar you can monitor performance of various Linux subsystems (CPU, Memory, I/O..) in real time.

Using sar, you can also collect all performance data on an on-going basis, store them, and do historical analysis to identify bottlenecks.

Sar is part of the sysstat package.

This article explains how to install and configure sysstat package (which contains sar utility) and explains how to monitor the following Linux performance statistics using sar.

Continue reading

The Ultimate Guide to Getting Support on Linux-use empathy to login to IRC….

2011-04-18 4 min read Learning Linux

The Ultimate Guide to Getting Support on Linux
Installing Linux has become effortless to the extent that anyone with a little knowledge of computers can get a Linux machine up and running instantly. However, many of them throw in the towel when faced with even the slightest of glitches. The main reason for this is the belief that Linux doesn’t offer any kind of support.

Other problem users face is that the regular technician who repairs their computer refuses even to touch a machine that’s running Linux. So, if you are one of those users disgruntled after encountering a multitude of problems with a fresh Linux install — don’t panic and read on to know some ways in which you could get support for your Linux installation.

Continue reading
Older posts Newer posts