LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 12-06-2011, 10:24 AM   #31
Tinkster
Moderator
 
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

Quote:
Originally Posted by johnsfine View Post
Code:
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.

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


Cheers,
Tink
 
Old 12-06-2011, 12:53 PM   #32
vistal
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, 12:51 PM   #33
vistal
LQ Newbie
 
Registered: May 2011
Posts: 25

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

Code:
RAM=dmesg | awk --re-interval -f ram.awk
to

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


Reply


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 03:49 AM
Possibility to create swap partition if extended partition is out of space? bhavisavla Linux - Newbie 1 09-12-2011 06:39 AM
Swap space did not function when physical memory ( RAM ) is full rabbit00 Linux - Newbie 19 07-06-2009 09:18 PM
LXer: Linux: Should You Use Twice the Amount of Ram as Swap Space? LXer Syndicated Linux News 1 11-19-2008 05:02 PM
SWAP space=2*RAM p_test Linux - Enterprise 3 04-27-2006 02:22 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:53 AM.

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