10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
OS version: RHEL 7.4
Shell : bash
I would like to capture command outputs using tee like # yum upgrade | tee yumupgradeLog
But, if I use tee command, I cannot respond to prompts like Is this ok : during command execution as shown below.
Is there a way I could use tee and still be able to... (4 Replies)
Discussion started by: kraljic
2. Shell Programming and Scripting
I have a requirement to redirect stdout and stderr to 'log' file and stderr alone to 'err' file.
Can someone please help me with this?
Thanks in advance (2 Replies)
Discussion started by: vikas_trl
3. Shell Programming and Scripting
I have the following script as shown below where I cat a file and then also tee the output to a file as I have to email the execution of the process to users at the end of the script:
cat incoming.dat | tee -a execution.log
echo "Issue with incoming.dat file, file not... (5 Replies)
Discussion started by: calredd
4. UNIX for Dummies Questions & Answers
for i in /tmp/*filex*; do echo $i |sed 's/\/tmp/infofiles\/infosize\/db\/files\///g';done 2>&1 |tee>output
The script works fine, but I cannot get the output to go to the screen and output at same time. I've tried tee -a tee and a number of commands but the only way I can get it working is... (3 Replies)
Discussion started by: newbie2010
5. Shell Programming and Scripting
In the current directory , I have seven files .
But when I use the following command , it lists eight files ( 7 files + file_list.xtx)
ls -1 | tee file_list.xtx | while read line; do echo $line ; done
Does the tee command create the file_list.xtx file first and then executes the ls -1... (1 Reply)
Discussion started by: kumarjt
6. UNIX for Advanced & Expert Users
Want to log the output of command & check the exit status to find whether it succeeded or failed.
> ls abc
ls: abc: No such file or directory
> echo $?
> ls abc 2>&1 | tee log
ls: abc: No such file or directory
> echo $?
Tee commands changes my exit status to be always... (7 Replies)
Discussion started by: vibhor_agarwali
7. Shell Programming and Scripting
script2: calling the script1
/tmp/script1.sh 2>&1 | tee tee.log
where test.txt contains ~1200 lines.
When I execute the script2 the more command does not print pagewise it goes to the end of the line, when I remove the tee command it... (4 Replies)
Discussion started by: prasad111
8. UNIX for Dummies Questions & Answers
If anybody knows something about the following please help me.
I am using HP unix.
In a script called test.txt i have the following command
echo ok | tee test1.txt
It works fine.It prints ok on the screen and creates the file test1.txt and puts in the file the "ok".
In the same... (2 Replies)
Discussion started by: kostasch
9. UNIX and Linux Applications
cat work.txt | tee $( grep '^M' > m.txt ) | $( grep '^N' > n.txt )
cehpny00:/home01/sr38632 $ cat m.txt
... (2 Replies)
Discussion started by: rsampathy
10. Shell Programming and Scripting
I would like to process, filter the same ASCII asynchronous live data stream in more than one pipe pipeline.
So the one pipeline should filter out some records using grep key word
and more than one pipes pipelines
each should grep for another key words, each set seperately for each... (5 Replies)
Discussion started by: jack2
XmScrollVisible(library call) XmScrollVisible(library call)
XmScrollVisible -- A ScrolledWindow function that makes an invisible
descendant of a ScrolledWindow work area visible
XmScrollVisible makes an obscured or partially obscured widget or gadget descendant of a ScrolledWindow work area visible. The function re-
positions the work area and sets the specified margins between the widget and the nearest viewport boundary. The widget's location relative
to the viewport determines whether one or both of the margins must be adjusted. This function requires that the XmNscrollingPolicy of the
ScrolledWindow widget be set to XmAUTOMATIC.
Specifies the ID of the ScrolledWindow widget whose work area window contains an obscured descendant.
widget Specifies the ID of the widget to be made visible.
Specifies the margin to establish between the left or right edge of the widget and the associated edge of the viewport. This
margin is established only if the widget must be moved horizontally to make it visible.
Specifies the margin to establish between the top or bottom edge of the widget and the associated edge of the viewport. This
margin is established only if the widget must be moved vertically to make it visible.
For a complete definition of ScrolledWindow and its associated resources, see XmScrolledWindow(3)