03-08-2016
Thanks. I just took a hex dump of the file and you are correct. It had a bunch of leading zeros (null characters) as soon as I got rid of them it showed correctly in the text editor.
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
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
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 ????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
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
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
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
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
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?
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
WHO(1) BSD General Commands Manual WHO(1)
NAME
who -- display who is logged in
SYNOPSIS
who [-abdHlmqrstTuv] [file]
who am i
DESCRIPTION
The who utility displays a list of all users currently logged on, showing for each user the login name, tty name, the date and time of login,
and hostname if not local.
Available options:
-a Same as --bdlprTtuv.
-b Time of last system boot.
-d Print dead processes.
-H Write column headings above the regular output.
-l Print system login processes.
-m Only print information about the current terminal. This is the POSIX way of saying who am i.
-p Print active processes spawned by init(8).
-q ``Quick mode'': List only the names and the number of users currently logged on. When this option is used, all other options are
ignored.
-r Print the current runlevel. Supported runlevels are:
d (DEATH) The system has halted.
s (SINGLE_USER) The system is running in single user mode.
r (RUNCOM) The system is executing /etc/rc.
t (READ_TTYS) The system is processing /etc/ttys.
m (MULTI_USER) The system is running in multi-user mode.
T (CLEAN_TTYS) The system is in the process of stopping processes associated with terminal devices.
c (CATATONIA) The system is in the process of shutting down and will not create new processes.
-s List only the name, line and time fields. This is the default.
-T Print a character after the user name indicating the state of the terminal line: '+' if the terminal is writable; '-' if it is not; and
'?' if a bad line is encountered.
-t Print last system clock change.
-u Print the idle time for each user, and the associated process ID.
-v When printing of more information is requested with -u, this switch can be used to also printed process termination signals, process
exit status, session id for windowing and the type of the entry, see documentation of ut_type in getutxent(3).
am I Returns the invoker's real user name.
file By default, who gathers information from the file /var/run/utmpx. An alternative file may be specified which is usually /var/log/wtmpx
(or /var/log/wtmp, or /var/log/wtmpx.[0-6] or /var/log/wtmp.[0-6] depending on site policy as wtmpx can grow quite large and daily ver-
sions may or may not be kept around after compression by ac(8)). The wtmpx and wtmp file contains a record of every login, logout,
crash, shutdown and date change since wtmpx and wtmp were last truncated or created.
If /var/log/wtmpx or /var/log/wtmp are being used as the file, the user name may be empty or one of the special characters '|', '}' and '~'.
Logouts produce an output line without any user name. For more information on the special characters, see utmp(5).
FILES
/var/run/utmp
/var/run/utmpx
/var/log/wtmp
/var/log/wtmp.[0-6]
/var/log/wtmpx
/var/log/wtmpx.[0-6]
SEE ALSO
last(1), mesg(1), users(1), getuid(2), utmp(5), utmpx(5)
STANDARDS
The who utility is expected to conform to IEEE Std 1003.2-1992 (``POSIX.2'').
HISTORY
A who utility appeared in Version 6 AT&T UNIX.
BSD
January 17, 2007 BSD