Sponsored Content
Homework and Emergencies Homework & Coursework Questions Log file analyzer, super basic sh program Post 303009672 by RudiC on Monday 18th of December 2017 07:27:26 AM
Old 12-18-2017
Use a pager like more or less to display the files on screen.
 

9 More Discussions You Might Find Interesting

1. Programming

basic math program 4 child

Iam writing a script for my sisters friends little brother i want the program to say hello lets say his name is Joe and ask him how he is and he can write a reply back saying fine and then it replys "Iam happy you are (his response) today and then it goes into a basic math where he can put in a... (9 Replies)
Discussion started by: perleo
9 Replies

2. HP-UX

BAD SUPER BLOCK - Run fsck with alternate super block number

Error received when I tried to restore a blank disk with an 'auto recovery' DDS tape via HP-UX recovery system 2.0 onto a 1Gb SCSI. I assumed it would do the setup, wrong. Could someone tell me the procedure to initial disk for recovering files using cpio. The system is a HP-UX 9.04 version on a... (1 Reply)
Discussion started by: admin wanabee
1 Replies

3. Shell Programming and Scripting

Having trouble writing a basic shell program

Hello. I'm trying to write a shell script that will take files that have .tar, .tar.gz, .tar.Z, .gz, .Z and .zip file extensions and uncompress and unarchive them. The script should be able to take multiple arguments. So far I can write a script using the case command that will do this but it will... (3 Replies)
Discussion started by: SeanWuzHere
3 Replies

4. Programming

Basic multithreaded program

I'd like to write a program (I'm flexible on language; C/C++ was my original idea but a scripting language would probably be better) that runs hundreds of programs, but only N = 4 (say) at a time. The idea is to keep all the cores on a multicore machine busy. How can I do this? In particular,... (6 Replies)
Discussion started by: CRGreathouse
6 Replies

5. HP-UX

Program monitor on BT-Basic

Hi, The "program monitor" command in BT-Basic prompt you for a user name and a password. How can I grant access only to certain users ? Thank you. (0 Replies)
Discussion started by: fosiceanu
0 Replies

6. IP Networking

Best iptables log analyzer?

Hello all, i want to view my iptables log on web interface, with chart (in option, and this is not my priority). What is the best program for this? I have Ubuntu server. Thanks ! :) (0 Replies)
Discussion started by: Pacifiste95
0 Replies

7. Infrastructure Monitoring

Centralized linux system log analyzer?!

Hello everyone! I`m searching for linux log parser application. I already find some ways, but the best looks logzilla. Requirements: Web interface for viewing Filtering in web Notifications in web or email Open source Support linux system logs, custom logs and apache logs. I will... (5 Replies)
Discussion started by: jabalv
5 Replies

8. Homework & Coursework Questions

Need help with Basic Unix Program

I am a newbie to UNIX. I'm learning UNIX on my own, just trying to get the jerk of how things work in UNIX environment. I am familiar with Windows environment. Can anyone pls write simple 'envprint' programs to : 1) List all the environment Information (using the -l or --l options) 2) ... (1 Reply)
Discussion started by: agup17
1 Replies

9. Shell Programming and Scripting

Log file analyzer, super basic sh file

Hello! I have a small shell project that is due next week, that I'd appreciate some help with. task: Write a shell program that can analyze at least 2 types of log files and print them in an easily readable way. Make it so that you can switch between log file types. The two file types should be... (1 Reply)
Discussion started by: malfiory
1 Replies
term::interact::pager(n)					 Terminal control					  term::interact::pager(n)

__________________________________________________________________________________________________________________________________________________

NAME
term::interact::pager - Terminal widget, paging SYNOPSIS
package require Tcl 8.4 package require term::interact::pager ?0.1? term::interact::pager object text ?options...? object interact object done object clear object text text object configure object configure option object configure option value... object cget option _________________________________________________________________ DESCRIPTION
This package provides a class for the creation of a simple paging text display. CLASS API
The package exports a single command, the class command, enabling the creation of pager instances. Its API is: term::interact::pager object text ?options...? This command creates a new pager object with the name object, initializes it, and returns the fully qualified name of the object command as its result. The argument is the text to show, possibly followed by configuration options and their values. The options are explained in the sec- tion Configuration. OBJECT API
The objects created by the class command provide the methods listed below: object interact Show the pager in the screen at the configured location and start interacting with it. This opens its own event loop for the pro- cessing of incoming characters. The method returns when the interaction has completed. See section Interaction for a description of the possible interaction. object done This method can be used by user supplied actions to terminate the interaction with the object. object clear This method can be used by user supplied actions to remove the pager from the terminal. object text text This method can be used to change the text shown by the pager. The pager will reset the dispay to show the first line of the text at the top. object configure object configure option object configure option value... object cget option Standard methods to retrieve and configure the options of the pager. CONFIGURATION
A pager instance recognizes the following options: -in chan Specifies the channel to read character sequences from. Defaults to stdin. -out chan Specifies the channel to write the pager contents to. Defaults to stdout. -column int Specifies the column of the terminal where the left margin of the pager display should appear. Defaults to 0, i.e. the left-most column. -line int Specifies the line of the terminal where the top margin of the pager display should appear. Defaults to 0, i.e. the top-most line. -height int Specifies the number of lines of text to show at most in the display. Defaults to 25. -actions dict Specifies a dictionary containing additional actions, using character sequences as keys. Note that these sequences cannot override the hardwired sequences described in section Interaction. INTERACTION
A pager object recognizes the control sequences listed below and acts as described. The user can supply more control sequences to act on via the configuration, but is not able to overide these defaults. Cursor Up The text is scrolled down a single line, making one more line visible at the top. The pager will not react if the first line of the text is already shown. Cursor Down The text is scrolled up a single line, making one more line visible at the bottom. The pager will not react if the last line of the text is already shown. Page Up The text is scrolled down a page. The pager will not react if the first line of the text is already shown. Page Down The text is scrolled up a page. The pager will not react if the last line of the text is already shown. Enter/Return The interaction with the object is terminated. BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category term of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation. KEYWORDS
control, pager, terminal, text display COPYRIGHT
Copyright (c) 2006 Andreas Kupries <andreas_kupries@users.sourceforge.net> term 0.1 term::interact::pager(n)
All times are GMT -4. The time now is 09:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy