Watch syntax help

Posted by Jason on Ask Ubuntu See other posts from Ask Ubuntu or by Jason
Published on 2011-02-04T04:48:25Z Indexed on 2011/02/04 7:33 UTC
Read the original article Hit count: 219

Filed under:
|

In my Systems Programming class, there are weekly programming experiments, and I'm having trouble with the current one.

The objective is to write a C program that slowly writes a string of text to a file, metered by usleep() in a 100 count for loop.

The goal of the experiment is to observe the file size buffer in action via the watch command. However, I can't get it to work using watch -d ./output

What syntax do I need for the watch command to see the changes made to the file size?

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about programming