Sponsored Content
Top Forums UNIX for Advanced & Expert Users w/who command returned zero users Post 41860 by sinyem on Thursday 16th of October 2003 03:57:04 AM
Old 10-16-2003
Thanks malcom,

Yes the are users logging in (see "last" output). "finger" said no one logged on ??.

We are using the default network login. The server was rebooted 2 days ago with missing /proc directory. I have to create the /proc directory manually else the "w" command will return an error "/proc missing file or directory ... sometime like that". Now that the /proc is created, "w" command does return any error message other than the "0 users" problem.

---------------------------------
$ last -n 10
informix pts/21 192.xx.x.xxx Thu Oct 16 15:36 - 15:38 (00:01)
rnd pts/13 192.xx.x.xxx Thu Oct 16 15:31 - 15:33 (00:02)
rnd pts/6 192.xx.x.xxx Thu Oct 16 15:29 - 15:33 (00:04)
eir pts/38 192.xx.x.xxx Thu Oct 16 15:18 - 15:18 (00:00)
eir pts/18 192.xx.x.xxx Thu Oct 16 15:17 - 15:18 (00:00)
eir pts/5 192.xx.x.xxx Thu Oct 16 15:17 - 15:18 (00:00)
eir pts/11 192.xx.x.xxx Thu Oct 16 15:02 - 15:03 (00:00)
rnd pts/36 192.xx.x.xxx Thu Oct 16 14:46 - 14:48 (00:02)
eir pts/41 192.xx.x.xxx Thu Oct 16 14:35 - 14:38 (00:02)
informix pts/12 192.xx.x.xxx Thu Oct 16 14:33 - 14:38 (00:04)

$ finger
No one logged on

$ finger rnd
Login name: rnd In real life: RND Staff Only
Directory: /export/home/rnd Shell: /bin/sh
Last login Thu Oct 16 15:31 on pts/13 from 192.168.1.144
No unread mail
No Plan.

$ w
3:47pm up 2 day(s), 22:01, 0 users, load average: 1.00, 0.93, 0.91
User tty login@ idle JCPU PCPU what
-----------------------------

Regards
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Incorrect Exit Status Returned from FTP command - Help??

I am trying to perform some error handing within a Korn sheel script whilst FTPing a file from one server to another.. The exit status is correctly set to zero, if my script connects to the other server and sends the file.. However, if for whatever reason other than a timeout the script... (3 Replies)
Discussion started by: frustrated1
3 Replies

2. UNIX for Dummies Questions & Answers

Copying file names returned from a grep command into another directory

When I do the following : grep -l "string" *, I get a list of file names returned. Is there a way to copy the files returned from the list into another directory ?. Thanks. (4 Replies)
Discussion started by: Kartheg
4 Replies

3. UNIX for Dummies Questions & Answers

Problem with files returned using Find command

When I enter the command below grep appears to be returning a file it shouldn't. find . -name "*.*" -exec grep "testing" {} /dev/null \; :tps3Mailfile ./SSI.ksh: # create TECHOUT dummy for test for testing purposes ./ftprimi1.ksh:# before running job in prod... change FTP to go to rimi... (3 Replies)
Discussion started by: dfb500
3 Replies

4. HP-UX

returned from remote command

Hi, there, I want to excute the remote command shell via "remsh", are there any simple or best way to get the result of remote shell from local ? thanks. (2 Replies)
Discussion started by: Frank2004
2 Replies

5. Shell Programming and Scripting

How to find out command has returned any value?

Hi Pals I am using this command in my script to find out warnings using fgrep where $log is the log file name, $date is the date to be searching and warnings.list contains list of matching words. grep "WARNING" $log|grep "$date"|fgrep -vf warnings.list I want to perform another action... (1 Reply)
Discussion started by: johnl
1 Replies

6. Shell Programming and Scripting

Retrive the value returned by a command excuted in a remote server using ssh

Hello Everybody, I'm facing a weird problem with the awk command. I try to retrieve in a variable the value returned by a simple ls command. ls /export/home/tmp |tail -1 return a good value (the name of the . But When I try to execute the same command in a remote server using ssh as... (2 Replies)
Discussion started by: Jabarod
2 Replies

7. Shell Programming and Scripting

number of lines returned from a grep command

hi all, from a shell (ksh) script, i am doing a 'grep'. how do i find out the number of lines returned from that 'grep' command ?? thanks in advance. (4 Replies)
Discussion started by: cesarNZ
4 Replies

8. Shell Programming and Scripting

'who' command -- getting data returned into variables (in bash)

Anyone know how to get the data out of the "who" command? I'm still in lukewarm pursuit of creating an OS X-like welcome message at the start of any Terminal session, sans having to use either bash login or calling up ssh. My trials & errors and surfing around have narrowed it down for me... (1 Reply)
Discussion started by: SilversleevesX
1 Replies

9. UNIX for Dummies Questions & Answers

Assigning the output of a command to a variable, where there may be >1 line returned?

Hello I am using unix CLI commands for the Synergy CM software. The command basically searches for a folder ID and returns the names of the projects the folder sits in. The result is assigned to a variable: FIND_USE=`ccm folder -fu -u -f "%name"-"%version" ${FOLDER_ID}` When the command... (6 Replies)
Discussion started by: Glyn_Mo
6 Replies

10. UNIX for Dummies Questions & Answers

sort file returned by FIND command in ascending

Hi there I have to enhance my current file looping to ensure the oldest file being processed first. current command: for FILENAME in `find $MY_DIRECTORY -follow -type f` I manage to get command for order by date modified descending, just can't get the ascending order. Please help for... (3 Replies)
Discussion started by: elsie512
3 Replies
PTS_QUIT(1)						       AFS Command Reference						       PTS_QUIT(1)

NAME
pts_quit - Exit from pts interactive mode SYNOPSIS
pts quit [-cell] <cell name> [-noauth] [-localauth] [-force] pts q [-c] <cell name> [-n] [-l] [-f] DESCRIPTION
The pts quit command exits from pts interactive mode. The command can be run from the command line or interactively, but on the command line it does nothing and is therefore of questionable utility. CAUTIONS
Prior to OpenAFS 1.4.5 and OpenAFS 1.5.23, the pts quit command was only available on Unix or Linux and when OpenAFS was compiled with the supergroups option (disabled by default). As of OpenAFS 1.4.5 and 1.5.23, it is always available. OPTIONS
Although they have no effect, pts quit takes the following standard pts options: -cell <cell name> Names the cell in which to run the command. For more details, see pts(1). -force Enables the command to continue executing as far as possible when errors or other problems occur, rather than halting execution at the first error. -help Prints the online help for this command. All other valid options are ignored. -localauth Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. Do not combine this flag with the -cell or -noauth options. For more details, see pts(1). -noauth Assigns the unprivileged identity anonymous to the issuer. For more details, see pts(1). OUTPUT
This command produces no output. EXAMPLES
Here is an example of a pts interactive session: % pts interactive pts> quit % SEE ALSO
pts(1), pts_interactive(1) COPYRIGHT
Copyright 2007 Jason Edgecombe <jason@rampaginggeek.com> This documentation is covered by the BSD License as written in the doc/LICENSE file. This man page was written by Jason Edgecombe for OpenAFS. OpenAFS 2014-04-08 PTS_QUIT(1)
All times are GMT -4. The time now is 08:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy