[Peeweelinux] Watching it run out of space

Barry Gershenfeld [email protected]
Thu, 31 Jul 2003 15:19:48 -0700 (PDT)


In my previous message, I forgot to mention the method I used
to monitor the progress of pwl setting up the flash disk.  You
can use the df command to track the progress of the scripts.

Using the watch command lets you "animate" it:

   watch -n 1 df

Run this on another terminal/console/xterm and you will be able
to see the target disk partitions get mounted, then watch as
they fill up.  

In one of the target models it takes a looong 
time to compress the image, so I wanted to watch the process
and at least see that it was still running and maybe see how
long it had been running.  So I tacked on a ps command:

   watch -n 1 "df; echo; ps axf | grep pts\/"

The grep "pts/" shortens the ps list so it fits on the 
screen--you should look at the TTY column of a conventional
ps ax command to see what to grep on so you only see the peewee 
processes.

Barry