I'm answering my own post to correct an error in what I wrote.

On Saturday 15 March 2003 20:06, shlomo solomon wrote:
> And, as I already wrote, although I can't explain it, the buffer problem
> disappeared. I know it makes no sense, but the first couple of times I ran

It turns out that my testing was not very good. After it was suggested on the 
list, I played with tee from the command-line until I learned the syntax and 
found what I had to do to get the output to stdout and a file at the same 
time. And, as I wrote, the output was being buffered. When I put the command 
in my script, I made a silly typing error and instead of the pipe (|), I 
typed (I). Since I use a san-serif font in my editor, I didn't notice the 
error. And when I ran the script, it **seemed** to work with no buffering, 
when in fact, no piping was being done and nothing was being written to the 
file. The following line, which checked the contents of the file using GREP 
also **seemed** to work OK because the file already existed from my 
command-line tests. 

After fixing the typing error, the script works as it should. The output is 
buffered (which is not great, but I can live with that). BTW - I tried 
unbuffer, but with no success.



Notice below that what I though was a pipe was actually an upper-case i (I). 
As I said - silly me :-(
>
>
> pilot-xfer -e $HOME/Palm/backup/exclude-files -s $HOME/Palm/backup/$TODAY I
> tee  tmp-screen-output
>
> cat tmp-screen-output | grep "Time elapsed: 0:00:0" >
> $HOME/Palm/backup/tmp-time
>
>


-- 
Shlomo Solomon
http://come.to/shlomo.solomon
Sent by KMail (KDE 3.0.5a) on LINUX Mandrake 9.0



================================================================To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to