10 More Discussions You Might Find Interesting
1. AIX
// AIX 6.1 TL8
Please advise on how to capture whoami log or the user and time info into a log file (i.e. /tmp/cmdcapture.log) whenever users are executing a certain command(s) so that I can keep the single log history (for all users) of who did what. The command(s) I need to monitor are a... (3 Replies)
Discussion started by: Daniel Gate
3 Replies
2. UNIX for Dummies Questions & Answers
when I type whoami i get an error saying ksh not found.. how do I exit from ksh script and make it work .. (2 Replies)
Discussion started by: lakers646
2 Replies
3. Shell Programming and Scripting
I want to erase some php code between a <? and a ?> in HTML containing a keyword, the problem is it finds the last > and wipes out everything before it
how do i specify for it to stop searching after the first >?
perl -i -p0e 's/<\?php.*keyword.*\?>//s'
there's many lines of php code... (2 Replies)
Discussion started by: vanessafan99
2 Replies
4. Shell Programming and Scripting
Hi
I do use this line to find my public IP.
Is there other way I can do this?
Maybe create the script some shorter?
wget -q -O - http://minip.no | grep "<b>" | head -n1 | cut -d'<' -f3 | cut -d'>' -f2
Thanks (1 Reply)
Discussion started by: Jotne
1 Replies
5. OS X (Apple)
I was following a tutorial on installing Homebrew and I changed the ownership of /usr/local/ to me. Now McAfee Security won't start This is the exact line I typed:
sudo chown -R `whoami` /usr/local
Then I tried to fix it with:
sudo chown -R root /usr/local
I still can't start mcafee. It say... (7 Replies)
Discussion started by: chancho
7 Replies
6. Shell Programming and Scripting
how can I use whoami on a script for ordinary user? it always says command not found. pls help
#!/bin/ksh
W='whoami'
DATE=`date "+%Y-%m-%d %H:%M:%S"`
echo " $DATE- by $W"
result
2011-03-29 09:46:16 - by
you wil noticed the by is blank...pls help..but in root, it works (1 Reply)
Discussion started by: lhareigh890
1 Replies
7. UNIX for Dummies Questions & Answers
Ladies, Gents,
I am fairly new to this game but I am having trouble making the above command work.
If I login as root and go to terminal session "whoami" works.
If I login as admin open a terminal session and "su root" the "whoami" command comes up with " Not recognised".
Any ideas?
... (1 Reply)
Discussion started by: John Dobson
1 Replies
8. Shell Programming and Scripting
Hi,
I have a challenging task,in which i have to find the duplicate files by its name and size,then i need to take anyone of the file.Then i need to open the file and find for more than one pattern and count of that pattern.
Note:These are the samples of two files,but i can have more... (2 Replies)
Discussion started by: jerome Sukumar
2 Replies
9. Shell Programming and Scripting
My code below is supposed to find which company had the most business and then print the appropriate fields from another file which are the companies ID number and name. I can loop through awk and display all the total amount of business for each company but I need help in only printing out the... (1 Reply)
Discussion started by: Enigma23
1 Replies
10. UNIX for Dummies Questions & Answers
HellOooO,
How I can find how delete a drictory in the system.If there's 2 root one of them outside the country but we have WAN so he can access the network from outside >>>> we are using same account so how I can know who done it I want to proof that.
Regards (5 Replies)
Discussion started by: geoquest
5 Replies