- Joined
- Nov 13, 2004
- Location
- Brookline, MA
I've run into a bit of a snag with one assignment for my Linux class; writing a util (shell script) that will gather data on user machines (kernel version, CPU info, hardware, memory, who's logged in, etc). I know how to extract what I need (sort of; using dmesg, pstree and lsmod), but I'm not completely sure how to extract a single line from dmesg/lsmod to output (CPU info on one line, memory capacity output on another line, etc). Is that possible?
What I'm looking for is a similar script so I know what the final outcome should be (to work backwards for the bits I don't have). This class is using Knoppix 4.0
What I'm looking for is a similar script so I know what the final outcome should be (to work backwards for the bits I don't have). This class is using Knoppix 4.0