Problem using tee to capture activity - nothing happens


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Problem using tee to capture activity - nothing happens
# 1  
Old 08-18-2011
Problem using tee to capture activity - nothing happens

Hi,

I'm sure this is real simple but in the looking I've done I haven't seen it addressed (or didn't realize it). I've started up a PuTTY connection to our UNIX box and started screen and script - no problems. Then I typed "tee teeKH18.txt" expecting it to start tee and dump all activity into the teeKH18 text file. (I'm trying to compare script and tee to see which is better for my current use.) After screen and script were typed and I hit enter the usual prompt appears (SYS9:/home/mike15>). After typing the tee command above and hitting enter the cursor drops a line but no prompt appears. Now everytime I type something to the terminal session it gets parotted back but not acted upon (like the command to start sqlplus). The file teeKH18.txt exists (I checked) and it gets a single copy of whatever I type (no parrot back). So what's this nube doing wrong? Smilie

Thanks!
# 2  
Old 08-18-2011
Code:
script | tee teescript

when you quit script with exit, you should have 2 files now: typescript and teescript
This User Gave Thanks to vbe For This Post:
# 3  
Old 08-18-2011
It always looks so easy when competent people do it! Thank you!!!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Mindboggling difference between using "tee" and "/usr/bin/tee" in bash

I'm on Ubuntu 14.04 and I manually updated my coreutils so that "tee" is now on version 8.27 I was running a script using bash where there is some write to pipe error at some point causing the tee command to exit abruptly while the script continues to run. The newer version of tee seems to prevent... (2 Replies)
Discussion started by: stompadon
2 Replies

2. IP Networking

How can I capture an application's internet activity?

I'm running a Windows application under Wine that is accessing the internet, and I would like to capture and log some or all of it's activity. That is, suppose it is retrieving this: http://example.com/some.php?user=ken&address=mainstreet.. It's sending data in the request, potentially... (2 Replies)
Discussion started by: KenJackson
2 Replies

3. Shell Programming and Scripting

Using tee

I have been using the command tee to store the output to a file and also write on the terminal. However I would need to put the program in the background although I would still need to see the file being updated like it was doing when using tee. Any suggestions on how to look at the log file... (3 Replies)
Discussion started by: kristinu
3 Replies

4. Shell Programming and Scripting

problem with suppressed output to file using echo and tee command

Hi, When I run the following command in terminal it works. The string TEST is appended to a file silently. echo TEST | tee -a file.txt &>/dev/null However, when I paste this same line to a file, say shell1.sh, and use bourne shell . I run this file in terminal, ./shell1.sh. However I... (1 Reply)
Discussion started by: shahanali
1 Replies

5. Shell Programming and Scripting

tee

Someone recently advised me to use the tee command to write to standard out. Why would you pipe your commands to tee -a <filename> rather than just using >> <filename> ? For example: date|tee -a myfile seems to be the same as date >> myfile Is there a benefit to... (5 Replies)
Discussion started by: fracken_toaster
5 Replies

6. Shell Programming and Scripting

removing tee

Hi, I have a script where i want to log in details to the standard output as well as log file so that its easy for tracing purposes. I have used the "tee"command. The problem with this is my scripts lines are getting longer as for each line i have #!/bin/ksh echo "hello world" |... (4 Replies)
Discussion started by: pinnacle
4 Replies

7. Shell Programming and Scripting

Trouble with tee command to capture script outputs

function GetInput { print -n "Input" read input export INPUT=$input } export COMMAND="GetInput" $COMMAND echo "$INPUT" $COMMAND | tee -a Log.log echo "$INPUT" The first one without "tee" works fine. echo "$INPUT" displays the values I type in for input. The second... (5 Replies)
Discussion started by: muthubharadwaj
5 Replies

8. UNIX for Dummies Questions & Answers

tee

hello how to append the hostname to each line of a file that is tee'd for example: tail -f file1 | tee file2 Iwant file2 to have the same new lines of file1 but with the hostname at the end or the beginning of each line. btw, is there more proper method than: tail -f file1 | tee... (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

9. UNIX for Dummies Questions & Answers

How does tee work

Greetings to everybody. I would like to know if I can use the pipe and command tee to read from edited file and to write to him e.g. "sed '{s_A_B_}' file | tee file". :confused: I know it doesn't work with > but I don't know anything about it with tee. Thank you for your help. :) (1 Reply)
Discussion started by: Foxgard
1 Replies

10. UNIX for Dummies Questions & Answers

tee problem

Hi you, This the code I have: function show_menu { echo " lalalalal" echo " 1. ...." echo " 2. ...." echo " 3. exit" read choice case $choice in 1) ... ;; 2) ...;; *) stop=1;; esac } (5 Replies)
Discussion started by: bensky
5 Replies
Login or Register to Ask a Question