![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| redirecting STDOUT & STDERR | jshinaman | Shell Programming and Scripting | 9 | 06-21-2007 09:04 PM |
| precedence of stderr and stdout | new2ss | Shell Programming and Scripting | 1 | 06-08-2006 08:03 PM |
| How to use tee with stdout and stderr? | siegfried | Shell Programming and Scripting | 1 | 11-18-2005 12:07 AM |
| STDOUT and STDERR going to a system log | longyie904 | Shell Programming and Scripting | 1 | 09-11-2002 08:42 PM |
| Redirect stdout and stderr | zcurtis | Shell Programming and Scripting | 8 | 09-02-2002 03:13 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#8
|
||||
|
||||
|
As I stated above, the code works bash - do you really need to use the C shell? Could you not encompass the above command inside a bash script?
Cheers ZB |
| Forum Sponsor | ||
|
|
|
#9
|
|||
|
|||
|
Yes, I really have to use C Shell. It is official company shell and because of this all my scripts (including this ) are run in C shell.
Thanks, |
|
#10
|
|||
|
|||
|
Folks!
Looks like I found the solution for C Shell. It would be: command argument |& tee filename.log Thanks everyone! |
|
#11
|
|||
|
|||
|
Does anyone know an answer for this in ksh?
|
|
#12
|
|||
|
|||
|
Here is what I am trying to do. See how the output of time does not show up in the log.
$ time ls home test 2>&1 | tee -a test.log ls: 0653-341 The file home does not exist. test real 0m0.01s user 0m0.00s sys 0m0.02s $ cat test.log ls: 0653-341 The file home does not exist. test |
|||
| Google The UNIX and Linux Forums |