users on a network


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting users on a network
# 1  
Old 04-18-2004
users on a network

this script checks every 10 sec if one or more users are logged on. the script reports when all the users ( in a specific group) are log on togather, and then stops.
first i want to know if it works??
second how to make it better?
* the script is in tcsh.


#!/bin/tcsh

if (!$#argv) then
echo error
exit 1
endif

set w= (`who | grep #argv[*]`)
if ($#w==$argv[*]) then
echo $argv[*] log on

else
echo $argv[*] not log on
endif
sleep 10
exit
# 2  
Old 04-18-2004
umm...If you want to know if it works, why don't you try it? Also, how do you want to make it "better"? Can you be more specific?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Ubuntu Server - simple network and users configuration

Hello, I am new to Ubuntu Server. Can you please suggest very simple configuration to network. Need: 1. Ubuntu Server (already installed) 2. Connect to it 1 Linux Mint computer (already installed) + 1 computer with Windows 7 (already installed). Need to create 3 groups with... (2 Replies)
Discussion started by: ABQw
2 Replies

2. Shell Programming and Scripting

Create multiple users with individual passwords to users

hi, i am new to shell scripts i write a shell script to create multiple users but i need to give passwords to that users while creating users, command to write this script (1 Reply)
Discussion started by: DONFOX
1 Replies

3. Red Hat

Showing all users in 'users' and 'top' commands

Hi All, I work in a multi user environment where my school uses Red Hat Linux server. When I issue commands such as "top" or "users", I get to see what others are doing and what kinds of applications they are running (even ps -aux will give such information). "users" will let me know who else is... (1 Reply)
Discussion started by: shoaibjameel123
1 Replies

4. UNIX for Dummies Questions & Answers

Need help showing which network protocol users use.

I'm having a bit of a trouble trying to figure out how to tell which network protocol users HAVE been logging in with. I know how to find this information for currently logged in users : maximillian.gardner@syccuxfs01:~> who joseph.blosser pts/0 2012-01-15 14:07 (198.107.160.185)... (5 Replies)
Discussion started by: maximillian.g
5 Replies

5. Solaris

To restrict the users not to change the passwords for NIS users

Hi All, How to restrict the NIS users not to change their passwords in for NIS users?? and my NIS user is unable to login to at client location what could be the problem for this ? Any body can help me. Thanks in advance. (1 Reply)
Discussion started by: Sharath Kumar
1 Replies

6. UNIX for Advanced & Expert Users

How to kill network users?

Hi everybody. I am using SCO open server. My problem is to kill users logged in my local network. I am using Kill -9 command for kill the repective user/terminal. But it shows in 'who -u'. when i try to kill agina that process it shows like "6229: no such process " User count is... (6 Replies)
Discussion started by: sanjaykunjam
6 Replies

7. Linux

Memory monitoring and sending alert mail to users in network using shell script

i m workiing on a shell script which may monitors network memory and send alert to user if it increase a threshold (1 Reply)
Discussion started by: navdeep5673
1 Replies

8. Ubuntu

script for memory monitoring and sending mail to users in network

I m working on a script which monitors the disk usage and send a mail to the users if it reaches a limit of 90%. hlp me (2 Replies)
Discussion started by: navdeep5673
2 Replies

9. Shell Programming and Scripting

How to find users in a network

How to find users in a network? I used who. But i want to to find users using cox internet to connect to a server. PLease help (1 Reply)
Discussion started by: subbarao83
1 Replies
Login or Register to Ask a Question