Hi There, I may have discovered a bug in the tail -f function of the textutils which causes tail not to follow the file. This occurs is the file which is being followed is zero'd and the contents updated to the exact same file size before the tail comes out of sleep mode. solution would be to check the modification time to see if the file has changed and if the size is either smaller or the same, then a reset to zero size has happened. stat(DATAFILE,&st); if(st.st_mtime!=mtime) { /* Okay, file has changed, now check the size to see if we */ /* need to seek back to the begining or not. */ if(st.st_size<=oldsize) { fseek(fp,0,SEEK_SET); } oldsize=st.st_size; mtime=st.st_mtime; Cheers, Adam. -- Adam Bolton - [EMAIL PROTECTED] - +61 2 9440 9011 Technical Manager - TECH 2U - #include <disclaimer> "What the hell does astronaut mean anyway?? Star Voyager."