?
Solved

Redirecting standard error in Korn shell

Posted on 2007-08-01
3
Medium Priority
?
2,858 Views
Last Modified: 2013-12-06
How to redirect both standard out and standard error to the same output file in Korn Shell?
Environment is HP .... Korn Shell
0
Comment
Question by:EmadGirgis
  • 2
3 Comments
 
LVL 85

Accepted Solution

by:
ozo earned 750 total points
ID: 19610188
>file 2>&1
0
 

Author Comment

by:EmadGirgis
ID: 19610272
Actually this didn't work.
the way to make it work is to swap the >filfe  with 2>&1

So this is how It worked

$ Program_name 2>&1 > /tmp/result_file.tmp
0
 

Author Comment

by:EmadGirgis
ID: 19610286
Actually this didn't work.
the way to make it work is to swap the >filfe  with 2>&1

So this is how It worked

$ Program_name 2>&1 > /tmp/result_file.tmp
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

755 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question