2010-09-20

Nuttx

An Open source RTOS, based on a micro kernel design and licensed under BSD. That sounds cool: http://nuttx.sourceforge.net/

2010-09-17

ifconfig output

What does all the counters in the ifconfig output mean? e.g. frame, dropped... this page describe some of them.

eth1      Link encap:Ethernet  HWaddr 02:83:13:02:24:00
          inet addr:192.168.20.13  Bcast:0.0.0.0  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2169 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1769 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1009774 (986.1 KiB)  TX bytes:210912 (205.9 KiB)

2010-08-30

Remove the Cygwin warning about MS-DOS path

MS-DOS style path detected: C:\wcs\eclipse\pcm51_io_to_mb_app\code\appl
  Preferred POSIX equivalent is: /cygdrive/c/wcs/eclipse/pcm51_io_to_mb_app/code/appl
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames


Run this command:
set CYGWIN=nodosfilewarning

2010-08-24

How to enable ping response in Window 7

Response to an ping is disabled in Windows 7 by default. I found this post on how to enable it:
How to enable ping response in Windows 7

2010-08-19

cat << EOF

Here is an option for writing several line of text to a file via a the shell.


~ # cat > test << EOF
> this is first line
> this is the second line
> EOF
~ # cat test
this is first line
this is the second line
~ #

Pipe stdout and stderr to one file.

In the Linux shell you can pipe both stdout and stderr to a file with > output_file 2>&1
E.g.:

 memtester 16M 1 > /dev/null 2>&1

Chain linux commands together

In the Linux shell you can chain a number of command together. You can do a number of command after each other without having to wait for each command to end.

e.g.
touch memtester ; memtester 16M 1 ; rm memtester

The commands is here separated with ; which tells the shell to execute the first command and then it is done it should execute the next command etc.

Another example:
touch memtester && memtester 16M 1 && rm memtester

Here the commands are separated with && which tells the shell to execute the first command and if it completes successfully then execute the next command and etc.