Sponsored Content
Top Forums Shell Programming and Scripting Redirect the output in a file and on screen Post 302524466 by dynamax on Monday 23rd of May 2011 11:44:05 AM
Old 05-23-2011
what is the alternative option. I don't like using STDOUT it directs everything to that file.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

redirect output to file?

Hi: I am currently working on a program which requires direct its ouput to a file here is an example ./proram arg_1 arg_2 when program ends all output will be arg_2 file Is that possible I am not a bad programmer, However I am stuck there. Can anyone give a hint? Thanks SW (1 Reply)
Discussion started by: slackware
1 Replies

2. UNIX for Dummies Questions & Answers

Redirect output to a file

Ahhhrrrggg I'm having a brain fart... I want to take the output of a command and redirect it to a file... This works.... $ man cp | cat >> copy_help but this doesn't keytool -help |cat >> keytool_help It just produces... these lines... more keytool_help ] ... ... (11 Replies)
Discussion started by: jimmyc
11 Replies

3. UNIX for Dummies Questions & Answers

redirect output to a file name

Hi all!! is possible to assign the output of some command to filename, i.e. grep_output.txt Otherwise, I want to open a new file which name is inside another, how can I do it? Thanks a lot! (7 Replies)
Discussion started by: csecnarf
7 Replies

4. Shell Programming and Scripting

How redirect standard output to a file

Hi guys, i have a script named purgeErrors.ksh, when i execute this script i need to redirect the output to a log file in the same directory, how can i do that ?? -- Aditya (5 Replies)
Discussion started by: chaditya
5 Replies

5. Shell Programming and Scripting

How to redirect output of ls to a file?

Hi All, I want to redirect only the file names to a new file from the ls -ltr directroy. how Can i do it. my ls -ltr output will be as below. -rwxr-xr-x 1 118 103 28295 Jul 26 2006 event.podl -rwxr-xr-x 1 118 103 28295 Jul 26 2006 xyz.podl I want my new file... (6 Replies)
Discussion started by: girish.raos
6 Replies

6. Shell Programming and Scripting

Redirect STDOUT & STDERR to file and then on screen

Dear all, redirecting STDOUT & STDERR to file is quite simple, I'm currently using: exec 1>>/tmp/tmp.log; exec 2>>/tmp/tmp.logBut during script execution I would like the output come back again to screen, how to do that? Thanks Lucas (4 Replies)
Discussion started by: Lord Spectre
4 Replies

7. Shell Programming and Scripting

script to mail monitoring output if required or redirect output to log file

Below script perfectly works, giving below mail output. BUT, I want to make the script mail only if there are any D-Defined/T-Transition/B-Broken State WPARs and also to copy the output generated during monitoring to a temporary log file, which gets cleaned up every week. Need suggestions. ... (4 Replies)
Discussion started by: aix_admin_007
4 Replies

8. Shell Programming and Scripting

Redirect script output to a file and mail the output

Hi Guys, I want to redirect the output of 3 scripts to a file and then mail the output of those three scripts. I used below but it is not working: OFILE=/home/home1/report1 echo "report1 details" > $OFILE =/home/home1/1.sh > $OFILE echo... (7 Replies)
Discussion started by: Vivekit82
7 Replies

9. Shell Programming and Scripting

Redirect STDOUT & STDERR to file and then on screen

Dear all, redirecting STDOUT & STDERR to file is quite simple, I'm currently using: Code: exec 1>>/tmp/tmp.log; exec 2>>/tmp/tmp.log But during script execution I would like the output come back again to screen, how to do that? Thanks Luc edit by bakunin: please use CODE-tags like the... (6 Replies)
Discussion started by: tmonk1
6 Replies

10. UNIX for Beginners Questions & Answers

Screen output to a file

Hi All, I am trying to out of shell script when i run it like sh /mypath/abc.sh ....a screen log should be generated whenever i input the values, when above the script prompt for values Regards Amarendra (3 Replies)
Discussion started by: amar1208
3 Replies
xconsole(1X)															      xconsole(1X)

NAME
dxconsole, xconsole - monitor system console messages with X SYNOPSIS
dxconsole | xconsole [-toolkitoption...] [-file file-name] [-notify] [-stripNonprint] [-daemon] [-verbose] [-exitOnFail] [-motif] [-stdin] [-maxSize n] [-buttons] OPTIONS
The dxconsole and xconsole programs accept all of the standard X Toolkit command line options along with the additional options listed below: To monitor some other device, use this option to specify the device name. This does not work on regular files as they are always ready to be read from. When new data are received from the console and the notify option is set, the icon name of the application has "*" appended, so that it is evident even when the application is iconified. -notify is the default. This option causes dxconsole or xconsole to place itself in the background, using fork/exit. When set, this option directs dxconsole or xconsole to display an informative message in the first line of the text buffer. When set, this option directs dxconsole or xconsole to exit when it is unable to redirect the con- sole output. When set, this option causes the Motif interface to be presented. (This option is always set in dxconsole.) This option directs xconsole to read from stdin as well as /dev/console (default in dxconsole). This option establishes the maximum amount (in charac- ters) to be displayed. The default is 32768. This option governs whether clear and dismiss buttons appear. Applies only to the Motif interface and is set by default. DESCRIPTION
The dxconsole and xconsole programs display messages which are usually sent to /dev/console. By default, xconsole presents the Athena interface and dxconsole presents the Motif interface. Since dxconsole is an X client, it will terminate upon receiving a fatal error from the X server. This may occur if the swap space is low and the X Server is not able to process a request from dxconsole. X DEFAULTS
This program uses the Athena Text widget, look in the Athena Widget Set documentation for controlling it. WIDGETS
In order to specify resources, it is useful to know the hierarchy of the widgets which compose dxconsole and xconsole. In the notation below, indentation indicates hierarchical structure. The widget class name is given first, followed by the widget instance name. XConsole xconsole XConsole text ENVIRONMENT
to get the default host and display number. to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property. FILES
specifies required resources specifies required resources SEE ALSO
X(1X), xrdb(1X), Athena Text widget, Motif Text widget AUTHOR
Keith Packard (MIT X Consortium) xconsole(1X)
All times are GMT -4. The time now is 07:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy