Sponsored Content
Top Forums Shell Programming and Scripting Finding users currently accesing a directory Post 10418 by LivinFree on Tuesday 13th of November 2001 11:26:59 PM
Old 11-14-2001
Well, there is fuser... On a Linux system:
Code:
$ fuser -u LivinFree /home/goober
/home/goober:          16979c(goober)

Also, lsof (not installed at all sites, but you can install it).

I'm sure it's possible to whip up a little script to connect to several hosts, and run a specific command.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Finding valid users

Is there a way to determine the names of valid system users? I know that last, finger, and who will give you the names of users who have accessed the system and / or those who are currently logged onto the system. I was trying to determine a way to find the names of any valid user whether or not... (5 Replies)
Discussion started by: jrdnoland1
5 Replies

2. UNIX for Dummies Questions & Answers

Finding out users

Hi. After using the command 'who' and getting all used accounts on current machine - how can i found out who are the users? (2 Replies)
Discussion started by: roco
2 Replies

3. UNIX for Dummies Questions & Answers

Finding last time users logged in

I would like to find out the last time all users have logged in or out. I tried the last command, but it could not find the wtmp file in /var/adm (I searched in othe directories also). This is an AIX rs6000 4.2.1 system. We are moving our applications from this system to an AIX 5.2 system and I... (11 Replies)
Discussion started by: jyoung
11 Replies

4. Shell Programming and Scripting

finding idle users

I am trying to write a script that will list the idle users on my system which is running HPUX 11.11. The script is currently written as : who -u > /home/rfm/scripts/user.txt echo " There are currently... " wc -l /home/rfm/scripts/user.txt echo " User logins on System : `uname -n` ... (3 Replies)
Discussion started by: rfmurphy_6
3 Replies

5. IP Networking

Finding all users on a LAN and their IP

On a local network, how can I generate a list that includes all usernames with their current ip? I get this list in Apple Remote Desktop but it would be much more handy to be able to get this kind of a list in Terminal. Using Terminal on a Mac. Thanks for this awesome forum! (2 Replies)
Discussion started by: sigurarm
2 Replies

6. Shell Programming and Scripting

accesing a value

hi while do if then echo QManager Name $1 fi if then echo Cluster Name$2 fi if (( $count != 0 && $count != 1 )) then echo Queue Name `$($count)` fi ... (3 Replies)
Discussion started by: satish@123
3 Replies

7. UNIX for Dummies Questions & Answers

Finding out all users and their UNIX groups??

Is there a way to find out all users and the UNIX groups they belong to?? :) (3 Replies)
Discussion started by: Hangman2
3 Replies

8. Shell Programming and Scripting

Finding the list of users who modified a file

Dear all, Need a quick help/suggestion on monitoring a particular directory . We have a deployment directory say (/users/integration/deploy ) under this there are several files which can be edited by a number of users - We need to write a script which will check this deployment directory... (5 Replies)
Discussion started by: jambesh
5 Replies

9. Shell Programming and Scripting

finding users first name and last name

can someone help me how do i do this.. Display user id, first and last names of all the members of your CIS132 class in alphabetical order by last name. Hint: • All classmate names are in the file /etc/passwd • the first 5 characters in the user id are the same for all class members. (s132a) (1 Reply)
Discussion started by: an2up
1 Replies

10. UNIX for Advanced & Expert Users

finding users first name and last name

an someone help me how do i do this.. Display user id, first and last names of all the members of your CIS132 class in alphabetical order by last name. Hint: • All classmate names are in the file /etc/passwd • the first 5 characters in the user id are the same for all class members. (s132a) ... (0 Replies)
Discussion started by: an2up
0 Replies
gitaction(1)						      General Commands Manual						      gitaction(1)

NAME
gitaction - GNU Interactive Tools - per file type action script SYNTAX
gitaction directory file .gitaction directory file DESCRIPTION
gitaction is a script that executes a different action for each file type specified. It is called by the gitfm program when pressing F2 or ^Xa (see the gnuitrc.TERM configuration files in the gnuit manual). The first parameter is the current directory name and the second one is the file name to be matched against the default patterns. The matching is done using the shell 'case' statement. If you press F2 or ^Xa on a *.html file, gitfm will invoke a browser to view it, if you press F2 or ^Xa on a *.tar.gz file, gitfm will list the tar archive contents, if you press the same keys on a *.gz file, gitfm will display its uncompressed contents on the screen, etc ... If you press F2 or ^Xa on a *.gif file or *.jpg file and you have the zgv utility installed, you will be able to see it. If you want to change the gif/jpeg viewer, all you need to do is to change its name in the gitaction script. There are many more file types and viewers that gitaction knows about. In addition, if you are running under GNOME, gnome-open is used, and on MacOS, open(1) is used. see(1) and metamail(1) are also used as fallbacks. If all else fails, the file is displayed using $GNUIT_PAGER. Feel free to change this. If you want to find out what the default action for each file type is (or if you want to modify it), just read/modify the gitaction script. The script can be easily enhanced. Just read it. The .gitaction script is a local version of the gitaction script. When started, gitaction tries to search a script called .gitaction in the current directory and, if it finds it, it starts it. If .gitaction's exit code is 0 ( .gitaction couldn't find a matching pattern), gitac- tion starts its own case statement trying to match the current file name (the second parameter) against its default patterns. The .gitaction script *must* be executable. An example of .gitaction can be found in the directory gitfm is installed into. (usually /usr/local/bin or /usr/bin) Debian users can find it in /usr/share/doc/gnuit/examples/. You should copy the example to the current direc- tory or your home directory and then modify it. BUGS
Please send bug reports to: gnuit-dev@gnu.org SEE ALSO
gitfm(1) gitps(1) gitview(1) gitmount(1) gitkeys(1) gitrgrep(1) gitunpack(1) AUTHORS
Tudor Hulubei <tudor@cs.unh.edu> Andrei Pitis <pink@pub.ro> Ian Beckwith <ianb@erislabs.net> (current maintainer). gitaction(1)
All times are GMT -4. The time now is 02:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy