Sponsored Content
Full Discussion: unable to redirect output
Top Forums Shell Programming and Scripting unable to redirect output Post 302268747 by lochraven on Tuesday 16th of December 2008 08:24:12 AM
Old 12-16-2008
Thats the exact code with in a script. It doesn't matter if he code is executed from the command line or with in a script.

There are messages being redirected from stdout and stderr, but the the messages comming from the hard drive access still show on the screeen.

The same messages can be viewed in the 'dmesg' output. so these are kernel messages.

Is there a way to trap or redirect kernel messages?
 

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 In Variable

how make assign the output of the command (for example: grep "file" "string" ) in a variable ($name)? i thing how put the result of the command (grep , cut, find ecc) in a variable.. IT's Possible ?? (1 Reply)
Discussion started by: ZINGARO
1 Replies

3. Shell Programming and Scripting

Redirect output

Hi all, I have a script which call a java program, the logging (to log file) in the program is done using log4j. However, as a safety measure, i still choose to direct standard error to another log file as follow /usr/bin/java -classpath ${classpath} -Xmx128m TestingProgram 2>>... (1 Reply)
Discussion started by: mpang_
1 Replies

4. Shell Programming and Scripting

Redirect Output

Hi, I would like to list files: ls *.hdf But I would like a copy of the output directed to the screen, but also APPENDED to a text file: test.txt I have tried: ls *.hdf | tee test.txt However, that will just write over everything already existing in test.txt. How can I append the... (1 Reply)
Discussion started by: msb65
1 Replies

5. Shell Programming and Scripting

output redirect

Hi i am compiling a source code by make command. i want to redirect the output of make to a file but at the same time i want to see the output in terminal. how to do this ?. please suggest your idea. thanks in advance. Saravana ---------- Post updated at 05:24 PM ----------... (2 Replies)
Discussion started by: tsaravanan
2 Replies

6. AIX

Unable to get the full content into a file when I redirect installp command output..

When i use the command to check the preview of the filesets to be installed using CLI # When using this commad 'm able to see all Preview view of the filesets to be installed installp -apgX -d "." all # When I redirected the same output to a file 'm able to see only half the details... (1 Reply)
Discussion started by: Sounddappan
1 Replies

7. 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

8. 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

9. 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

10. Shell Programming and Scripting

Unable to redirect output to a file

I m not able to redirect the java version to a file however, it shows as output when I run my script. bash-3.2$ more 1test.tmp java_version=`which java` echo "MY JAVA:"$java_version version=`"$java_version" -version` echo $version >>/tmp/moht/java_version.log $java_version -version 2... (4 Replies)
Discussion started by: mohtashims
4 Replies
FS_MESSAGES(1)						       AFS Command Reference						    FS_MESSAGES(1)

NAME
       fs_messages - Sets whether the Cache Manager writes log messages

SYNOPSIS
       fs messages [-show (user|console|all|none)] [-help]

       fs me [-s (user|console|all|none)] [-h]

DESCRIPTION
       The fs messages command controls whether the Cache Manager displays status and warning messages on user screens, the client machine
       console, on both, or on neither.

       There are two types of Cache Manager messages:

       o   User messages provide user-level status and warning information, and the Cache Manager directs them to user screens.

       o   Console messages provide system-level status and warning information, and the Cache Manager directs them to the client machine's
	   designated console.

       Disabling messaging completely is not recommended, because the messages provide useful status and warning information.

OPTIONS
       -show (user|console|all|none)
	   Specifies the types of messages to display. Choose one of the following values:

	   user
	       Send user messages to user screens.

	   console
	       Send console messages to the console.

	   all Send user messages to user screens and console messages to the console (the default if the -show argument is omitted).

	   none
	       Do not send any messages to user screens or the console.

       -help
	   Prints the online help for this command. All other valid options are ignored.

EXAMPLES
       The following command instructs the Cache Manager to display both types of messages:

	  % fs messages -show all

PRIVILEGE REQUIRED
       The issuer must be logged in as the local superuser root.

SEE ALSO
       afsd(8)

COPYRIGHT
       IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.

       This documentation is covered by the IBM Public License Version 1.0.  It was converted from HTML to POD by software written by Chas
       Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.

OpenAFS 							    2012-03-26							    FS_MESSAGES(1)
All times are GMT -4. The time now is 07:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy