Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by JJ1

  1. JJ1

    Matching Variable inside Pattern

    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...
  2. JJ1

    Matching Variable inside Pattern

    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...
  3. JJ1

    Capturing STDOUT, STDIN and Return Code from external command

    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...
  4. JJ1

    Capturing STDOUT, STDIN and Return Code from external command

    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...
  5. JJ1

    Simple AD Question

    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.
  6. JJ1

    Simple AD Question

    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'...
  7. JJ1

    Functions can return objects? True or False

    Thank you folks. Great answers.
  8. JJ1

    Functions can return objects? True or False

    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 =...
  9. JJ1

    what is degauss

    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.
  10. JJ1

    Pixels follow cursor with Nvidia drivers on Geforce 4

    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...
  11. JJ1

    Pixels follow cursor with Nvidia drivers on Geforce 4

    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...
  12. JJ1

    what is degauss

    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.
  13. JJ1

    Building very small WiFi LAN

    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.
  14. JJ1

    Linksys vs Others: Reliability

    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
  15. JJ1

    Building very small WiFi LAN

    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...

Part and Inventory Search

Back
Top