04-26-2013
Normally you would find first name last name in /etc/passwd, having the user login name or UID is enough to sort you out...
3 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi guys
say I have a file that contains
hello
world
this
is
AAAAA
message
to
try
BBBBBB
and
see
if
anyone
AAAAA
knows
the (3 Replies)
Discussion started by: JamesByars
3 Replies
2. Shell Programming and Scripting
#!/bin/sh
who
echo "\r"
echo Enter the terminal ID of the user in use:
echo "\r"
read TERM_ID
echo "\r"
ps -t $TERM_ID | grep sh
echo "\r"
echo Enter the process number to end:
echo "\r"
read PID
echo "\r"
kill -9 $PID
What this code does is ultimately grab the PID of a users sh... (6 Replies)
Discussion started by: psytropic
6 Replies
3. Shell Programming and Scripting
How do I capture an error for any command I use.
For e.g if i try to zip a file and the file is not there. The regualr $? -gt 0 only tells its un-successful but won't tell me that the file is not there when I run through a script. How can I capture this error?
for e.g.. zip $x.zip $x... (1 Reply)
Discussion started by: dsravan
1 Replies