swzoh wrote:

>> 
>> I don't know about leading to file damage. But I wonder why many (all
>> that I'm using) command-line programs don't have this issue. For
>> instance gnu-win32 'cat' is such a program.
> 
> Is there any app which writes to the file? cat seems to need only
> 'read' access if I'm not wrong.
> 
> Sean

No, sorry I wasn't clear.
gnu-win32 tail and cat commands.

In one console window:
C:\> tail -f c:\log.txt

In another console window:
C:\> cat >> c:\log.txt
add this line to log.txt
add this one too
^Z

and the console window running tail -f shows:
add this line to log.txt
add this one too

It works also when cat >c:\log.txt is used, with tail -f showing a 'file 
truncated' warning, which makes 
sense.

so I was hoping that file.writeall(file,s,"a") could be made to work like 
cat>>file with respect to tail -f.



Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to