Sponsored Content
Top Forums Shell Programming and Scripting tail command not show on screen Post 302271248 by seyha_moth on Wednesday 24th of December 2008 11:08:31 AM
Old 12-24-2008
Bug Try test your command

Hi joeyg, I will try to test with your command and reply result 2 or 3 days because this is a problem that occur in my daily work.

Thanks,
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

tail command

Hi , I have found a interesting thing about tail command: when I tried to use 'tail -1 *' to look at every file with the current derectory, I only got one line of result of one file. But if I use 'head -1 *', I would get multiple lines. Is there a way to do get multiple lines with 'tail -1 *'... (3 Replies)
Discussion started by: whatisthis
3 Replies

2. Shell Programming and Scripting

Show date/time with tail|grep command

Hi, I have a log file without date/time, and I want that everytime tail|grep find something it displays the date/time and the line. I have tried something like this command but without any luck to display the date/time: tail -F catalina.out | sed "s/^/`date `/" | egrep ... (6 Replies)
Discussion started by: julugu
6 Replies

3. Shell Programming and Scripting

Logging ALL standard out of a bash script to a log file, but still show on screen

Is it possible to store all standard-out of a bash script and the binaries it calls in a log file AND still display the stdout on screen? I know this is possible to store ALL stdout/stderr of a script to a single log file like: exec 1>&${logFile} exec 2>&1 But running a script with the... (3 Replies)
Discussion started by: ckmehta
3 Replies

4. Shell Programming and Scripting

Help with tail command

Hi All, My query seems to be silly but Iam unable to find where the exact problem lies. I have a script to unzip set of files here is the script #!/bin/ksh Count=`cat /home/gaddamja/Tempfile | wc -l` while do Filename=`cat /home/gaddamja/Tempfile |tail -$Count | head -1` cd... (7 Replies)
Discussion started by: jagadish_gaddam
7 Replies

5. Red Hat

command line tool to disable screen lock and/or screen saver

Hi, I have a simple question : how to disable screen lock and/or sreen saver with command line with RHEL5.4 ? (1 Reply)
Discussion started by: albator1932
1 Replies

6. Shell Programming and Scripting

tail command help

Hi does anyone know how to create a file using the tail command? My book has this file I need to create and it says to use the tail command and that it is possible but I have no idea. Thanks. (4 Replies)
Discussion started by: drew211
4 Replies

7. Shell Programming and Scripting

How to use command tail -f & show line number.

Hello Guys, I have created function which is as follow: tail -f filename |grep "Key word" output from this command 19-11-2011 21:09:15,234 - INFO Numbement - error number:result = :11 19-11-2011 21:09:15,286 - INFO Numbement - error number:result = :11 19-11-2011 21:09:15,523 - INFO... (5 Replies)
Discussion started by: ooilinlove
5 Replies

8. Shell Programming and Scripting

Use “tail -f” to monitor and report, but the top line should be always fixed on the screen.

Title: Use “tail -f” to monitor and report, but the top line should be always fixed on the screen. Hi, dear Unix experts, I am trying to find a Unix command (or scripting) on how to continuously display a text file of its last several lines of contents. But during this displaying, I want some... (2 Replies)
Discussion started by: df3c
2 Replies

9. Shell Programming and Scripting

Downloading show garbage on the screen

I have PHP code for downloading pdf files from mysql database. The code is working fine in firefox mozilla and google chrome but not in IE 10, it show garbage in the screen. I have debugged the code with some headers utilities to examine the headers request, it appear the headers is not sending... (0 Replies)
Discussion started by: hadinetcat
0 Replies

10. UNIX for Beginners Questions & Answers

Tail -f Command help

Hi Team, Can anyone help me here: I have to access server logs via putty and these logs file is a trailing file (continously updating) with ERROR and WARNINGS... I need to know if I can pull this trailing file to a local drive so that I can do some higlighting on some keywords through Notepad... (13 Replies)
Discussion started by: jitensetia
13 Replies
trpt(8) 						      System Manager's Manual							   trpt(8)

NAME
trpt - Transliterates protocol trace SYNOPSIS
trpt [-afjst] [-p address] FLAGS
Print the values of the source and destination addresses for each packet recorded, in addition to the normal output. Follows the trace as it occurs, waiting briefly for additional records each time the end of the log is reached. Lists the protocol control block addresses for which trace records exist. Shows only trace records associated with the protocol control block specified in hexadecimal by the address variable. You must include a space between the -p flag and the address variable when you specify this flag. Prints a detailed description of the packet-sequencing information, in addition to the normal output. Prints the values for all timers at each point in the trace, in addition to the normal output. DESCRIPTION
The trpt command, used for debugging sockets, queries the buffer of Transmission Control Protocol (TCP) trace records. The TCP trace record buffer is created when a socket is marked for debugging with the setsockopt(2) subroutine. The trpt command queries the buffer and then prints a description of the trace records. When you specify no options, the trpt command prints all the trace records found in the system and groups them according to their TCP/IP connection Protocol Control Block (PCB). If you are debugging a system file other than the default, the system argument can be used to replace the default. Before you can use the trpt command, you must do the following: Isolate the problem and mark for debugging the socket or sockets involved in the connection. Find the address of the protocol control blocks associated with these sockets by using the netstat -aA command. Then, you can run the trpt command, using the -p flag to supply the associated protocol control block addresses. You can specify multiple -p address flags with a single trpt command. The -f flag can be used to follow the trace log once it is located. The -j flag can be used to check for the presence of trace records for the socket in question. If the system image does not contain the proper symbols to find the trace buffer, the trpt command cannot succeed. FILES
Specifies the command path RELATED INFORMATION
Commands: netstat(1) Functions: setsockopt(2) delim off trpt(8)
All times are GMT -4. The time now is 10:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy