Re: sftp progress showing ... 66% complete

2005-12-10 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 http://cygwin.com/acronyms/#PPIOSPE Ugh - top-posted. Reformatted. http://cygwin.com/acronyms/#TOFU >> From: Eric Blake ^ Ugh - http://cygwin.com/acronyms/#PCYMTNQREAIYR > > If you use bash, $(( x - y )) does

Re: sftp progress showing ... 66% complete

2005-12-10 Thread Brian Dessent
Robert Body wrote: > Thanks for the input, Brian, I was trying to have the script re-direct > output to a file (well actually just the final command of _time_ command was > what mattered), but I guess that meant the sftp progress % went to a file > too, but strange thing is, the other Stdout messa

Re: sftp progress showing ... 66% complete

2005-12-10 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ugh. Top-posting. http://cygwin.com/acronyms#TOFU >> From: Brian Dessent ^ Ugh. http://cygwin.com/acronyms/#PCYMTNQREAIYR According to Robert Body on 12/10/2005 2:01 PM: > I don't know how to handle X-

Re: sftp progress showing ... 66% complete

2005-12-10 Thread Robert Body
put from _time_ (measuring how long $mycommand took) and this way by including "progress" in the input file to sftp i get to see the progress %percentage during transfer :-) -Robert From: Brian Dessent <[EMAIL PROTECTED]> Reply-To: cygwin@cygwin.com To: cygwin@cygwin.com S

Re: sftp progress showing ... 66% complete

2005-12-10 Thread Brian Dessent
Robert Body wrote: > ok it appears my problem is with my script, not sftp: > > specifically with using tee or > in the command: (time $mycommand) 2>&1 | > tee $tempFile The sftp program, like many others (e.g. scp) will only output status information if stdout is a tty. When you redirect to a f

RE: sftp progress showing ... 66% complete

2005-12-09 Thread Robert Body
ok it appears my problem is with my script, not sftp: specifically with using tee or > in the command: (time $mycommand) 2>&1 | tee $tempFile I am trying to time $mycommand which is "sftp [EMAIL PROTECTED] < fileWithActions" I need the output of _time_ and then i head and tail it and send to