Adding an unmatched single quote in the middle of an awk script can cause lots of syntax problems (such as the error you are getting here).
Spliting the string containing the abbreviated month names onto multiple lines will cause other problems depending on the current month and the months of the dates found in the data you're processing.
Try replacing the lines in the code you have written:
with something closer to the code I suggested:
This User Gave Thanks to Don Cragun For This Post:
This is my senario.....
The user enters a userid into linux.
((I have have already scripted the command to read this userid.))
I need help in writing the script so It reads the userID and in conjuction w/ the finger command displays to the user "no plan" on the screen (so the user reads/sees... (4 Replies)
I'm trying to clean up my server and I have the list of some "special" users stored on the text file like this
Now I want to write a shell script to finger all of them so I can have some kind of ideas who they are but here comes the problem....I completely forgot how to do it with shell... (3 Replies)
Hello all,
Here is what I am trying to do. If a user exist, then send an echo "EXIST" or else "DOES NOT EXIST". (under HP-UX)
Kind of:
#!/usr/bin/sh
USER=mylogin
finger $USER
if $? = 0
then
echo "EXIST""
else
echo "DOES NOT EXIST"
fi (10 Replies)
Hi,
iam using sunsolaris.
when you type finger command -- it dispalys information about local and remote users.
but here it shows as can't stat /dev/gold:8664
can anybody help what is the solution for this error.
previously the output came.
thanks,
shan (1 Reply)
Hello all,
my unix is bash based and the finger command output is:
Login Name Tty Idle LoginTime Office
amos.john Amos John pts/26 1 Dec 5 16:18 (77.100.22.07)
What am trying to achieve is extract the Login (amos.john) and Name (Amos John) from this output without using awk or sed.
... (1 Reply)
I want to know the correct version of how i should use the finger command in this example below.(os is debian lenny)
(nymserver.pl is located in /home/nymserv directory.)
the two versions are :
(in/etc/inetd.conf)
finger stream tcp nowait nymuser /usr/nym/nymserv nymserv... (3 Replies)
Hi
Does anyone know if there is anyway of doing the finger command for all user id's in my enviroment. What I need to obtain is the full names of all users on the system.
I know if i do the finger command with no arguments it will list users currently logged in, but i need all users...
... (2 Replies)
how to extract user machine name for current terminal using finger command
below command gives machinename for all session , is it possible to filter it to only currernt terminal ?
finger -b -p $LOGNAME | grep from (12 Replies)
$ finger yeti
Login: yeti Name: yeti
Directory: /arpa/tz/y/yeti Shell: /bin/ksh
On since Wed Apr 2 15:24 (UTC) on pts/149
Mail last read Mon Mar 31 11:08 2014 (UTC)
No Plan.
Hi there,
I am trying to... (2 Replies)
Hi
I need to disable finger & telnet command in solaris 8
I have put the # infront of finger and telnet line in /etc/inetd.conf file. Further I have run the below command
kill -1 <process id of inetd >
But when I am running finger command it is till giving information for remote machine... (8 Replies)
Discussion started by: amity
8 Replies
LEARN ABOUT HPUX
fingerd
fingerd(1M)fingerd(1M)NAME
fingerd - remote user information server
SYNOPSIS DESCRIPTION
is the server for the RFC 742 Name/Finger protocol. It provides a network interface to which gives a status report of users currently
logged in on the system or a detailed report about a specific user (see finger(1)). The Internet daemon executes when it receives a ser-
vice request at the port listed in the services data base for ``finger'' using ``tcp'' protocol; see inetd(1M) and services(4).
To start from the configuration file must contain an entry as follows:
Once a remote host is connected, reads a single ``command line'' terminated by a carriage-return and line-feed. It uses this command line
as the arguments to an invocation of sends the output of to the remote host and closes the connection.
If the command line is null (contains only a carriage-return and line-feed pair), returns a report that lists all users logged in on the
system at that moment.
If a user name is specified on the command line (for example, user<CR><LF>), the response lists more extended information for only that
particular user, whether logged in or not. See finger(1) for the details of this extended information.
If is run with the option, it allows remote user names on the command line (for example, user@host<CR><LF>). Otherwise, if the command
line contains a remote user name, prints the error message and closes the connection.
AUTHOR
was developed by the University of California, Berkeley and HP.
SEE ALSO finger(1), inetd(1M), services(4),
RFC 742 for the Name/Finger protocol.
fingerd(1M)