Sponsored Content
Full Discussion: Text display
Top Forums UNIX for Dummies Questions & Answers Text display Post 302968359 by vbe on Tuesday 8th of March 2016 05:04:01 PM
Old 03-08-2016
My 2 cents: Most probably your log file is not a true ascii file the format of a file can do such things which the cat command doesnt really care ( beware! ) I would not be surprised that using file command it returns you the content as "data" which does not necessarily mean ascii and so text (GUI ) editors cant read and I suppose tend to display just blanc, an example of such log files? the wtmp or utmp file

That said I worked late last night and its late now for me... so I might very well be writing a load of crap... Forgive me if its the case... and will be working very late tomorrow so Good night
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Enter text and display on logo

Okay, lets say I have a entry field, to enter the persons name. Then I have a image of a car, and when the person hits submit on the form , the image loads and the name the person entered is displayed on the door or the car. How would I do this in a browser.could someone give me a Javascript or... (1 Reply)
Discussion started by: perleo
1 Replies

2. Shell Programming and Scripting

PHP: display text and picture

Can someone give me a script in php to: Connect to Mysql: DB= content TABLE = message Enter text , about 3000 characters, and put a image either left or right, top or bottom or the text. Please someone make me this script, ive spent several hours trying to figure it out. (1 Reply)
Discussion started by: perleo
1 Replies

3. Shell Programming and Scripting

Order text display not correct.

My shell script below for import data to Oracle it run okay. but the text display not correct follow order command executed. =========================Shell Script code================= #!/bin/sh #directory = ${1-'pwd'} #run import data with SQLLoader runSQLLoader() { ... (2 Replies)
Discussion started by: raccsdl
2 Replies

4. UNIX for Advanced & Expert Users

display HTML text in body using unix mailX ????

display HTML text in body using unix mailX ????Hello, could any one tell me how to display text in html layout by sending a file using mailx command in unix. i know to use mailx : mailx -s "SUBJECT" user.name@domail.com < file_name.txt instead of txt file i want to send html page and... (8 Replies)
Discussion started by: sparan_peddu
8 Replies

5. Shell Programming and Scripting

Display text between two words/characters

Using sed or awk, I need to display text between two words/characters. Below are two example inputs and the desired output. In a nutshell, I need the date-range value between the quotes (but only the first occurance of date-range as there can be more than one). Example One Input: xml-report... (1 Reply)
Discussion started by: cmichaelson
1 Replies

6. Shell Programming and Scripting

how to display multiline text

I am writing script that can run on solaris 10, Linux Fedora and windows taht has cybwin installed. I want to display a variable containing muli-line text. using echo command, the variable display all rows in single line i.e. it loses the format. Is there any other command that displays... (2 Replies)
Discussion started by: mmunir
2 Replies

7. Shell Programming and Scripting

display 5 lines from the particular text

Hi All, please help me to display 5 continious lines from a particular text. my file is as below. file1.txt ------ Good 1 2 3 4 5 luck 1 2 3 I want to diplay 5 lines from the word Good. (4 Replies)
Discussion started by: little_wonder
4 Replies

8. Solaris

Set display to text

How do I set up my solaris 10 machine to display in text mode instead of graphics mode, permanently? (1 Reply)
Discussion started by: jastanle84
1 Replies

9. Shell Programming and Scripting

Display text is string matches below.

I have not idea how I would accomplish this. I have a script that scans for CDP neighbours. I get the results in a file. I am interested in CDP Neighbor Details if name BSWITCH shows up. If BSWITCH is not present then skip. CDP Neighbor Details for 10.200.21.1... (1 Reply)
Discussion started by: mrlayance
1 Replies

10. What is on Your Mind?

Forum Display - Thread Preview Text Animation

Instead of the slow and not readable tooltips with the preview of the thread content in forum view, I have added the preview with mouseover (see attached movie). Let me know if you want a different kind of preview (animation, duration font-color, size, etc,) Thanks. <script>... (29 Replies)
Discussion started by: Neo
29 Replies
SESSREG(1)						      General Commands Manual							SESSREG(1)

NAME
sessreg - manage utmp/wtmp entries for non-init clients SYNOPSIS
sessreg [-w wtmp-file] [-u utmp-file] [-L lastlog-file] [-l line-name] [-h host-name] [-s slot-number] [-x Xservers-file] [-t ttys-file] [-a] [-d] user-name DESCRIPTION
Sessreg is a simple program for managing utmp/wtmp and lastlog entries for xdm sessions. System V has a better interface to utmp than BSD; it dynamically allocates entries in the file, instead of writing them at fixed positions indexed by position in /etc/ttys. To manage BSD-style utmp files, sessreg has two strategies. In conjunction with xdm, the -x option counts the number of lines in /etc/ttys and then adds to that the number of the line in the Xservers file which specifies the display. The display name must be specified as the "line-name" using the -l option. This sum is used as the "slot-number" in the utmp file that this entry will be written at. In the more general case, the -s option specifies the slot-number directly. If for some strange reason your system uses a file other than /etc/ttys to manage init, the -t option can direct sessreg to look elsewhere for a count of terminal sessions. Conversely, System V managers will not ever need to use these options (-x, -s and -t). To make the program easier to document and explain, sessreg accepts the BSD-specific flags in the System V environment and ignores them. BSD and Linux also have a host-name field in the utmp file which doesn't exist in System V. This option is also ignored by the System V version of sessreg. USAGE
In Xstartup, place a call like: sessreg -a -l $DISPLAY -x /etc/X11/xdm/Xservers $USER and in Xreset: sessreg -d -l $DISPLAY -x /etc/X11/xdm/Xservers $USER OPTIONS
-w wtmp-file This specifies an alternate wtmp file, instead of /var/log/wtmp. The special name "none" disables writing records to the wtmp file. -u utmp-file This specifies an alternate utmp file, instead of /var/run/utmp. The special name "none" disables writing records to the utmp file. -L lastlog-file This specifies an alternate lastlog file, instead of /var/log/lastlog, if the platform supports lastlog files. The special name "none" disables writing records to the lastlog file. -l line-name This describes the "line" name of the entry. For terminal sessions, this is the final pathname segment of the terminal device file- name (e.g. ttyd0). For X sessions, it should probably be the local display name given to the users session (e.g. :0). If none is specified, the terminal name will be determined with ttyname(3) and stripped of leading components. -h host-name This is set for BSD hosts to indicate that the session was initiated from a remote host. In typical xdm usage, this options is not used. -s slot-number Each potential session has a unique slot number in BSD systems, most are identified by the position of the line-name in the /etc/ttysfile. This option overrides the default position determined with ttyslot(3). This option is inappropriate for use with xdm, the -x option is more useful. -x Xservers-file As X sessions are one-per-display, and each display is entered in this file, this options sets the slot-number to be the number of lines in the ttys-file plus the index into this file that the line-name is found. -t ttys-file This specifies an alternate file which the -x option will use to count the number of terminal sessions on a host. -a This session should be added to utmp/wtmp. -d This session should be deleted from utmp/wtmp. One of -a/-d must be specified. SEE ALSO
xdm(1), utmpx(5) AUTHOR
Keith Packard, MIT X Consortium X Version 11 sessreg 1.0.7 SESSREG(1)
All times are GMT -4. The time now is 08:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy