On Tue, Nov 16, 1999 at 05:53:26PM -0600, Mark A. Zottola wrote:
|
| Thanks.
|
| "Todd A. Jacobs" wrote:
| >
| > On Tue, 16 Nov 1999, Mark A. Zottola wrote:
| > > time ./a.out >>& summary
| > What are you trying to do here? If you want to put it in the background,
| > do:
| > time ./a.out >> summary &
| a.out is the name of an executable and time is the timing command. I
| want to append the output of the time command into the file summary.
| I would prefer a direct append instead of writing a script to redirect
| time's output for each run of the program into its separate file then
| 'cat'ting those files together into one large summary file.
Then you want
time ./a.out 2>>summary
because "time" writes its summary to stderr (file descriptor 2, hence
the 2 before the >>, which would otherwise default to stdout, file 1).
| Again, if this is an rtfm - please point me to where in the manual this
| is covered.
"man bash" and/or "man sh" (since this is gneric shell lore, not some
bash-specific twiddle). See "I/O Redirections" or some similar title.
I think Todd was more gettin at your
>>&
thing, which he took to be a mangled "redirect in append mode and also
put into the background". I think you've actually been raised in the
barbarous csh world, when >& is a sick syntax for "send stdout and
stderr to this file". The csh's VERY crude and doesn't provide anything
as useful as "just stderr, thanks".
--
Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
CP/M is to metric as cockroaches are to a Timex watch
- [EMAIL PROTECTED]
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.