No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help
View Responses


Grex Info Item 285: questions about commands
Entered by mcpoz on Tue May 28 12:56:48 UTC 1996:

I have a couple of questions:

1.  What is the command that displays what other people are doing?
    It is something like "who" or "finger" but it also shows if the
    people logged on are in party, in conference, etc.

2.  What is the command to find out how many people are registered
    to a given conference?  I tried many variations of the following
    with no luck:  cat /etc/passwd | wc -1

Thanks

13 responses total.



#1 of 13 by draven on Tue May 28 15:25:13 1996:

1.  It sounds like you are referring to the 'w' command.

2.  Try the 'part' command in bbs.  From unix, you can run wc on the 
ulist file in each conference.  cat /etc/passwd | wc -1 will tell you how 
many accounts are on Grex, total.


#2 of 13 by popcorn on Tue May 28 15:37:47 1996:

This response has been erased.



#3 of 13 by popcorn on Tue May 28 15:38:11 1996:

This response has been erased.



#4 of 13 by popcorn on Tue May 28 15:40:30 1996:

This response has been erased.



#5 of 13 by draven on Tue May 28 21:21:27 1996:

Really?  So what does the participants command do, look in every user's 
directory for a participation file?


#6 of 13 by robh on Tue May 28 21:46:11 1996:

Yep, that's exactly what it does.  You can see why it
takes so long, given that we have nearly 11,000 users
in /etc/passwd right now.


#7 of 13 by davel on Wed May 29 00:55:06 1996:

BTW, if you're using "w" for the specific purpose asked about, it's the
*shell* command, not the Picospan command you want.  If you're running it from
a bbs prompt ("Ok:" or "Respond or pass?"), do "!w" (without the quotes).


#8 of 13 by mcpoz on Wed May 29 01:00:35 1996:

thanks, I'll play with those suggestions.


#9 of 13 by mcpoz on Wed May 29 01:11:42 1996:

Re: #7 - that hint was what I needed - I knew it worked before, but I forgot
that it should be the shell command.

Re:  Counting participants within a conference - the following command 
     seems to work:  !locate photo.cf | wc -l

     I was using one (1) instead of ell (l)

     Thanks again.


#10 of 13 by mcpoz on Fri May 31 01:47:21 1996:

When I use a shell command, using "!" what actually happens?  The reason I
am asking is I was telling someone about how to use internic to look up names
and I could not explain to him how to access that command from his webserver.


#11 of 13 by robh on Fri May 31 03:17:13 1996:

For most programs, entering "!" followed by a command tells
the program to spawn off a new copy of the shell program,
and run the command within that copy of the shell.
(Either that, or hitting "!" by itself spawns a new shell,
gives you a shell prompt, and lets you use the shell
interactively.)

I know that some sites won't let their users access the shell
directly, and disable the ! command from the various programs
they have.  Your friend should ask the sysadmins over there
whether he's allowed to run a shell program.


#12 of 13 by davel on Fri May 31 18:08:00 1996:

That is: there's a convention observed by a lot of Unix programs (& some in
some other environments, too) that says that a command prefixed by a bang is
a shell command.  Whether a particular program understands that convention
(or allows shell escapes if it understands them) is up for grabs.


#13 of 13 by popcorn on Sat Jun 1 04:28:46 1996:

This response has been erased.

Response not possible - You must register and login before posting.

No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help

- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss