Thank you all for the reply.
I like PHV's answer best and replaced my original if statement with this:
if ( ($1 ~ "^"UserName"") && ($2 !~ "^[ ]*"ScriptPid"[ ]*$") ) {
So, presumably, one must quote the awk variables and also delimit their regexp's with quotes as well?
Much appreciated...
All,
I'm passing variables to AWK using the -v option (as recommended in the man page).
This seems to work, but not when the variable is placed inside a regexp for matching.
This is my script's input:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 3098 0.0...
Andyros,
That's a great suggestion. Based on your answer, I think this is what I need:
system( "/bin/su", "-c", "/home/remedy/Remedy_gentkt -s \"$fault_title\" -L \"$description\"", "non_root_user" 1>/tmp/stdout 2>/tmp/stderr );
It's slightly messy because I then have to open the file...
Folks,
I'm fairly new to Perl and UNIX, but have been placed with the UNIX team at work for a month.
My first task is to create a script which mounts NFS shares and raises an alert upon failure (we have a system called 'Remedy' which displays incident alerts to a 24-7 team).
To generate a...
Thank you Aftertaf.
So the best way of tracking which users logged into which machines is to set an audit policy for every user?
By "security log", do you mean the Security section of eventvwr?
Apologies for the newbie nature of my questions.
James.
All,
I'm new to Windows Servers and AD, but have a fairly straighforward question.
What I'm wondering is whether AD keeps an audit trail of which machines a user has logged into?
i.e. Is it possible to choose a username (say 'james') and find out the hostname of the last machine 'james'...
Folks,
I'm a VBScripting newbie and have a very simple question.
I'm trying connect to a COM Object as follows:
'Global Vars
dim objFarm
'Create Farm Object
objFarm = ConnectFarm()
Function ConnectFarm( )
Dim objFarm
' Create MetaFrameFarm object
Set objFarm =...
The question's already been answered in post 2 - just follow the link!
Apologies if the response seemed rude, but I'm used to the netiquette of the *BSD UNIX forums.
/JB.
1. No conflict
2. Yes it is. I believe all the release versions of Nvidia drivers are signed (don't quote me on this though).
3. Done this and rebooted, but it's hasn't helped unfortunately.
I also put the card in another machine and got the same problem, so I think a hardware fault is pretty...
Dear All,
I have a PC with an "Abit Geforce 4 Ti4200 AGP(8x)" graphics card. When I boot Windows, I see the following problems:
1. Splash screen has a few stray black pixels over the Windows logo.
2. The user login screen then has vertcal stripes of black dots.
3. The mouse cursor has about...
People get very annoyed when you post without checking the obvious!
Remember, google is your friend:
http://www.google.co.uk/search?hl=en&ie=UTF-8&oe=UTF-8&q=define%3A+degauss&btnG=Search&meta=
HTH,
James.
Thanks for replying guys.
I completely realise the best way is to get the combo unit - Router/AccessPoint.
Out of pure interest though, does the Adhoc mode work with Internet Connection sharing? Is it supported by all WiFi cards?
Thanks in advance,
James.
If you buy a Linksys, some might say you're getting a Cisco on the cheap. Who knows, there may one day be a release of IOS for it!
Also, I quite like the idea of accessing a linux shell:
http://www.seattlewireless.net/index.cgi/LinksysWrt54g#head-998c4ad7982499899aee917d0f93f3c36f71df0c
Hi All,
A friend asked me recently how to cheaply connect 2 laptops via Wifi (one laptop currently has an adsl modem to be used with ICS).
I said he'd got 2 options:
1. Wireless Linksys router.
2. AP in the ethernet NIC of one laptop with a Wifi card in the other.
My first question is, was...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.