Even if it would mean changing some of your script, I don't think that it would be too much in relation to gained stability and maintainability, eg if your previous code was
a change would be as simple as
If, however, you are absolutely sure that there is no other way, at the top of your script put the line
which will redirect all stderr messages to /dev/null (even those that might indicate a serious problem)
Last edited by pludi; 05-22-2009 at 09:57 AM..
Reason: Code example
Hi.
I'm working on a project for a class, and there's one part of the project that is confusing me.
It's a compression and decompression project, and after we write our code for compression, we need to write to standard error.
(1) Size of original file (number of characters read... (1 Reply)
I have a program that is sending error text to the console and I need to redirect that output to a log file. I'm brand new to Unix and don't know how to do this. Any direction would be greatly appreciated. (1 Reply)
I'm writing a script using file descriptor 2 (std error) to send an email only if the command fails or errors out but the script always emails me irrepective of whether it fails or not. It will not email the /tmp/check.error file output if doesn't error out just the mail with the subject "Cannot... (3 Replies)
Hi all,
Maybe my question is too simple but till now i couldn't figure about a solution :(
I have a bash script scheduled in cron:
<cron time parameters> my_script.sh > result.log 2>&1
By this way i can have standard output and standard error in my result.log file
Now i want my script... (2 Replies)
Hello,
I would like to know if there is a shell in which operations such as 2| (redirect standard error of one process to the standard input of another one) exist?
I know it is possible to do it in bash with things like:
(process 2>&1) | other_process
but I find it a bit intricate when... (3 Replies)
Hi,
I want to redirect the standard output to standard error whenever an error occurs for ex
if
then
echo right
else
echo wrong
fi
I want to redirect the wrong to stderror .Adding a line 1>&2 will do that or is additional code to be added.How can i verify whether the output... (2 Replies)
Hey, I'm completely new at this and I was wondering if there is a way that I would be able to redirect the log files in a directories standard output and standard error into and excel spreadsheet in anyway?
Please remember don't use too advanced of terminology as I just started using shell... (6 Replies)
Hello Friends,
Good Day.
I am trying to redirect a standard error to the bit bucket(/dev/null) but it is not working. Though, it is working fine in redirecting the standard output.
Below is the output of my script without any redirection:
$ ./CheckVSSLocks.sh... (16 Replies)
I need to run a cronjob and in the cronjob I execute a script that if there is an error produces standard error so I do
/RUNMYSCRIPT 2> mylogfile.log
However, if it runs correctly, I don't get a standard error output, I get a standard out output. How do I redirect both standard error and... (2 Replies)
Testing this with KSH on RHEL
The bellow code works but i can't seem to handle the exit status of the unix command when it fails... i wanted to put something like >/dev/null 2>&1 to manage standard output and standard error but it changes my logic and the code doesn't work cause it doesn't... (11 Replies)
Discussion started by: maverick72
11 Replies
LEARN ABOUT OPENSOLARIS
sharefs
sharefs(7FS) File Systems sharefs(7FS)NAME
sharefs - Kernel sharetab filesystem
DESCRIPTION
The sharefs filesystem describes the state of all shares currently loaded by the kernel. It is mounted during boot time as a read-only file
at /etc/dfs/sharetab.
Filesystem contents are dynamic and reflect the current set of shares in the system. File contents are described in sharetab(4).
File contents can be modified as a result of share(1M), sharectl(1M), sharemgr(1M) and changing properties of a zfs(1M) data set.
The module may not be unloaded dynamically by the kernel.
FILES
/etc/dfs/sharetab System record of shared file systems.
SEE ALSO share(1M), sharectl(1M), sharemgr(1M), zfs(1M), sharetab(4)SunOS 5.11 31 Oct 2007 sharefs(7FS)