10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am writing a shell script with 2 run time arguments. During the execution if i got any error, then it needs to redirected to a error file and in console. Also both error and output to be redirected to a log file. But i am facing the below error.
#! /bin/sh
errExit ()
{
errMsg=`cat... (1 Reply)
Discussion started by: sarathy_a35
1 Replies
2. Shell Programming and Scripting
Hi,
I'd like to redirect the STDOUT output from my script to a file and simultaneously display it at a console.
I've tried this command:
myscript.sh | tail -f
However, it doesn't end after the script finishes running
I've also tried this:
myscript.sh | tee ~/results.txt
But it writes... (3 Replies)
Discussion started by: wenclu
3 Replies
3. Shell Programming and Scripting
I do a lot of TSM work and I embarked on what I thought would be an easy task, and I'd be very happy for any input to save the pounding my keyboard is receiving :]
By default, the output of TSM's console has no timestamping, making it hard to sort through accurately.
This puts my console into... (5 Replies)
Discussion started by: Vryali
5 Replies
4. Shell Programming and Scripting
Hi
can anyone tell me how to redirect the ouput of a cvs command to a file as well as the console?
i tried using
cvs add <filename> | tee logFile
cvs add <filename> 2>logFile 2>&1
All i could get is only on console or on file.
Please help
Thanks (2 Replies)
Discussion started by: ankitag2010
2 Replies
5. Shell Programming and Scripting
Hi All,
Is there a way in Bash we can redirection some output to both console and the file at the same time.
~Parag (2 Replies)
Discussion started by: paragkalra
2 Replies
6. UNIX for Dummies Questions & Answers
Hi,
---------- Post updated at 04:12 AM ---------- Previous update was at 04:09 AM ----------
This is the scripts..
Date=`date +"%m/%d/%y %H:%M:%S "`
echo "Run on $Date"
echo "Run on $Date" >&2
# Setting Variables
PassDir=$PS_HOME/autosys/pass # Location of the... (0 Replies)
Discussion started by: sonja
0 Replies
7. AIX
I have several backup scripts I am improving which involves mksysb, savevg and tar.
Is there a way to have the output of any command sent to the standard output as usual (terminal) and at the same time, send a copy of it all into a file ? Normal outputs and error outputs.
Even if I am... (1 Reply)
Discussion started by: Browser_ice
1 Replies
8. UNIX for Dummies Questions & Answers
Hi ,
I am using the following command
kill -3 pid ----which will return the thread dump.
I want redirect this to file.
I tried like the following two ways.
kill -3 9843 >> srini.log
kill -3 9852 >> srini 2>&1
But those two cases are failed :mad:
pls let me knwo is there any... (2 Replies)
Discussion started by: srinivsa
2 Replies
9. Shell Programming and Scripting
Environment: Sun UNIX
Language: Bourne Shell
I have the following script and it works fine. Unfortunately, from user's perspective, it looks very messy because the user is able to see the output of the process caused by the print command.
Is there a better way to overcome it?
Here's the... (10 Replies)
Discussion started by: totziens
10 Replies
10. UNIX for Dummies Questions & Answers
I'm new to UNIX....
I'm running SCO UNIX and would like to disable routed daemon from being start at boot time.
How should I do this????? Please help. (2 Replies)
Discussion started by: rrivas
2 Replies