LM-Sensors can't seem to pull any info on the temp sensors for my new MSI H61M-P21(B3) mobo. Is MSI just not Linux friendly? Or could it possibly be that there really are no temp sensors on this board? I must be missing something simple here
I want to traverse a directory and get a list of files that contain a set of patterns. I assumed I could use grep for this, but I having trouble getting grep to only return files that match ALL patterns. Here's what I've come up with so far:
However, this gives me a list of files that match ANY of the patterns in the searchpatterns.txt file. I want to match ALL of the patterns. I've looked through the man page, but can't find anything that allows me to change the "OR" to "AND" for multiple patterns.
I'm trying to find exact matches of some users in the /etc/passwd file using "grep -w", but it doesn't always work. For example, I have the following users:[URl].. So, let's say, I want to search for the user "stewart" (which doesn't exist)
I have word like initialize_my_var:in sample.php and I included three library files, take it as a.php, b.php, c.php ,I really don't know where my label(initialize_my_var:)definition is present in my library files, is it possible with a pattern matching string to find which library file really have the exact term "initialize_my_var:" , I'm really looking for an exact pattern match.
so i cannot install anything because update-info-dir file is missing from /var/lib/dpkg/info/ .. I've searched for the last day and a half for a way to fix this, but nothing. can't even update dpkg because of this. so how do I bypass or fix this so I can install stuff (this is a fresh install of ubuntu 10.04 lts Lucid Lynx).
Is there a way to get hardware specific info about a /dev?I have added a data acquisition board, and, I don't know if it has shown up in the /dev list, or how to make it do so, or even if I want it to.It is located at address 0x300, but I don't know how to get that kind of information from something listed in /dev.I have a program that accesses the board and it is working fine, but I need to run the program as root (sudo acquire_program).I have been reading about groups and permissions and there may be a way to give access to a /dev/something to a program (or group)
Some of my applications use different window types for pull-down menus than what compiz window animation think. This means that I get normal open window animation on these pull-down menus instead of the menu-theme. Inside the CompizConfig you can specify exactly which window types the different animations apply to, and you can use "grab" to probe your window for this info. My problem is that I can't "grab" the info for the pull-down, since it leaves "grab" mode once I try to open the menu (and grabs the info for the parent window instead of the menu). How do I get to know the window properties of the pull-downs, so that I can map them to the relevant window animation theme?
I'm trying to read our companies mssql ordertracking db using php's mssql_connect. I was able to make this work when using WAMP, and I had done so by adding the same user on both machines and then applying that user name to the WAMP service. Because of viruses and poor performance... I moved the site over to ubuntu server and I have to say i am very pleased, other than I cannot make a connection to mssql now. I installed sybase5 and can see mssql is available via phpinfo. It's using freetds. I know all my connection info is correct. I can ping the machine that has mssql from the new webserver. When i try to view a test php connection page it returns nothing but a null response, and my error log just says ERROR with no specific info. I did however find out that /tmp/freetds.log returns a bunch of jibberish. ubuntu forum isn't letting me submit the whole log, so i put it on sendspace here [URL]...
I did jack around with odbc_connect but still couldn't get it to work... I feel like I am close with mssql_connect but there is some user authentication problem. why it won't return any info from the mssql db. Also I was wondering if something similar can be done with ubuntu where i applied a user to the WAMP service on my windows machine which then was able to connect to the mssql db.
I'm working on a new conky script, and I had the idea to use text from a [URL]... The command I'm using to pull the file is:
Code: curl -s http://www.thefuckingweather.com/?zipcode=33186 | grep 'ITS FKING *' However, this gives me the entire line of code this line appears in. Code: <br />ITS FKCING NICE</div><div id="remark"><br /> How can I limit this to simply the text?
Sorry about the foul language btw...the words obviously aren't misspelled when I enter them in the terminal
I have been reading about rescue CD's but haven't found out whether I can make one using my currently running Centos(centos-release-5-4.el5.centos.1 ).I tried to use a Centos cd we have here and it looks fine till it asks where the 'tree' structure is located, when I select cd it ejects it and asks the same question again. Do I need to build a rescue cd containing directory info of my specific system?This is related to wanting to fsck my file system.
I have a file (.tmpfile) and inside it is a string which i only know part of, the rest being a random group of characters... I would like to know how to pull the whole string out of the file and into a variable.