Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-06-2011, 11:24 AM   #31
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911

Originally Posted by johnsfine View Post
RAM=dmesg | awk --re-interval -f ram.awk
That does not look right to me (doesn't look like RAM could capture the final result), but I should let some bash expert answer. I really don't know that stuff.
You're quite right, it's not. It either needs $() or `` around it,
w/ $() being the preferred option.

RAM=$(dmesg | awk --re-interval -f ram.awk)

Old 12-06-2011, 01:53 PM   #32
LQ Newbie
Registered: May 2011
Posts: 25

Original Poster
Rep: Reputation: 0
Burning a new version of the script with the suggested change and I'm going to test shortly. After that I will double check on the ram.awk file used in the live cd test and update you guys.

Thanks again.
Old 12-07-2011, 01:51 PM   #33
LQ Newbie
Registered: May 2011
Posts: 25

Original Poster
Rep: Reputation: 0
After changing the line that calls ram.awk in my script from

RAM=dmesg | awk --re-interval -f ram.awk

RAM=$(dmesg | awk --re-interval -f ram.awk)
I get a blank when i try to echo RAM to the screen.

Still working on checking the livecd test and getting a dmesg output from the installer kernel. Keep getting interrupted while working on it .


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why size of swap space is 2x of RAM??? Why not 1.5x of RAM or 2.5x of RAM??? Saurav Ghosh Linux - Newbie 7 11-01-2011 04:49 AM
Possibility to create swap partition if extended partition is out of space? bhavisavla Linux - Newbie 1 09-12-2011 07:39 AM
Swap space did not function when physical memory ( RAM ) is full rabbit00 Linux - Newbie 19 07-06-2009 10:18 PM
LXer: Linux: Should You Use Twice the Amount of Ram as Swap Space? LXer Syndicated Linux News 1 11-19-2008 06:02 PM
SWAP space=2*RAM p_test Linux - Enterprise 3 04-27-2006 03:22 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration