Sponsored Content
Top Forums Shell Programming and Scripting Show the login of users connected with awk Post 302464243 by Scott on Tuesday 19th of October 2010 02:44:13 PM
Old 10-19-2010
It seems to be OK:

Code:
$ w|awk 'NR>2 {print $1}'
scott
scott

Do you have a problem with it?

Perhaps a slight modification:
Code:
$ w|awk 'NR>2 && !A[$1]++ {print $1}'
scott

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Monitoring connected users

Hello every body Happy new year and merry christmass. Is there a way to monitor the users who are connecting to a Solaris 2.8 Sun Spark workstation . I just need to monitor the users and the command they are usning during telnet or rsh to my workstation. Cheers (2 Replies)
Discussion started by: Reza Nazarian
2 Replies

2. AIX

Change users login name

Hi, I need to change some users login name in AIX. With solaris i donīt had problems, i have used "usermod". But in AIX the usermod command donīt have the same behavior. Can someone give me a tip on how to perform these changes? Thanks in advance. (9 Replies)
Discussion started by: spacewalker
9 Replies

3. Shell Programming and Scripting

users login

Hello everyone I need to send to a file the last command from all users who log in and log out by week or month. My questions are I can do it with the command or I need to do a script ? If the answer is I need to do a script, someone can help me because Im complete new to make a... (3 Replies)
Discussion started by: lo-lp-kl
3 Replies

4. UNIX for Dummies Questions & Answers

Send a massive message to the connected users

How can I send a message for all the users connected into the system at the same time? Let's say I need to reboot the server and I ask the users to save their jobs becasue the server will be rebooted? (5 Replies)
Discussion started by: agasamapetilon
5 Replies

5. AIX

How to show hostname infor after login

When I login AIX console, how to show hostname before any command: hostname:/#>id uid=0(root) gid=0(system) groups=2(bin),3(sys),7(security),8(cron),10(audit),11(lp) (15 Replies)
Discussion started by: rainbow_bean
15 Replies

6. HP-UX

No users can login

Dear Forum, I had this case before, all of sudden all users including root can't login. What done is by connecting to console port and resetting root password, "pwunconv" command, reboot server. My question is, how this can happen??? thanks :confused: (3 Replies)
Discussion started by: irda
3 Replies

7. Solaris

Passwordless Login between users

Hi Gurus, Wanted to know if there is a way to enable passwordless login between specific users in a Solaris (5.9)server. I copied the public key of first user into the $HOME/.ssh/authorized_keys file of the second user. But it didn't work out. Note - Am talking about users in the same... (9 Replies)
Discussion started by: Hari_Ganesh
9 Replies

8. Red Hat

Cannot show graphical login display

Hi all, I'm running Red Hat Enterprise Linux Server 6.3 Santiago. I already installed the X Window package during installation and the graphical login display can be shown normally after installation. Yesterday, I accessed remotely by GUI mode using VNC viewer and somehow it got crashed.... (1 Reply)
Discussion started by: sergionicosta
1 Replies

9. Shell Programming and Scripting

How to show a list of currently logged in and logging out users?

Hi Guys! I am sure that this question might appeared previously, but I still don't know how to show a list of logged out users. Please help with this! Thanks in advance:) (5 Replies)
Discussion started by: saloliubliu
5 Replies
nih-dbus-tool(1)					      General Commands Manual						  nih-dbus-tool(1)

NAME
nih-dbus-tool - D-Bus binding code generator SYNOPSIS
nih-dbus-tool [OPTIONS]... [-o FILE] [XMLFILE] nih-dbus-tool [OPTIONS]... -o FILE --system|--session --dest=NAME OBJECT-PATH DESCRIPTION
OVERVIEW
The D-Bus introspection format is an XML document describing the interfaces implemented by a particular object, including the methods and signals of that interface along with their arguments and the properties of that interface. A single document describes a single object, represented by the root <node> tag. Interfaces implemented by that object are specified by <interface> tags within it. Methods, signals and properties defined by the interface are described by <method>, <signal> and <property> tags within the interface. Arguments to methods and signals are defined by <arg> tags within them. Names and other values are specified as attributes to the tag. Additional properties for external tools or software may be given in <annotation> tags. These may appear within interfaces, methods, sig- nals, properties and arguments. nih-dbus-tool makes use of many of these. Note that argument annotations are an nih-dbus-tool extension to the format. nih-dbus-tool's parser is reasonably liberal, to allow for future expansion of the D-Bus introspection format. Any unknown tag, attribute or annotation, or any tag not in an expected location, will be ignored with a warning. However a missing root node tag, missing attributes, illegal or invalid format values for defined attributes or non well-formed XML will result in an error. Character data and comments are not considered part of description, and are not parsed. OPTIONS
AUTHOR
Written by Scott James Remnant <scott@netsplit.com> BUGS
Report bugs at <https://launchpad.net/libnih/+bugs> COPYRIGHT
Copyright (C) 2009 Scott James Remnant <scott@netsplit.com>. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. libnih-dus 2009-04-11 nih-dbus-tool(1)
All times are GMT -4. The time now is 11:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy