LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

having fun with bash varaibles: indirect variable references

Posted 11-28-2009 at 01:38 PM by lumak (Lumak's Guide to Random Things)
Updated 11-28-2009 at 02:59 PM by lumak

Well I recently started messing around with bash scripts as cgi scripts and was wondering how to pass variables in and what not.

Well it turns out, Apache will define the variable $QUERY_STRING which will contain everything after the first question mark. You can then pars this string to define variables. The general format is "name1=val1&name2=val2". It turns out you can actually declare variables in bash using 'declare' and parameter expansion.

...
Attached Files
File Type: txt cgi_vars.txt (2.4 KB, 529 views)
Member
Views 4718 Comments 2 lumak is offline
Old

Rootkit Hunter 1.3.6 release imminent...

Posted 11-27-2009 at 04:45 PM by unSpawn
Updated 11-27-2009 at 04:50 PM by unSpawn

Us devs decided it's about time. Expect the 1.3.6 release this weekend...

For notable features see the changelog.
Moderator
Posted in Uncategorized
Views 1255 Comments 0 unSpawn is online now
Old

Pathology: Two Years of Linux

Posted 11-26-2009 at 05:35 PM by fullmetalgerbil

So it's been just about two years that I've been using Linux. I started off just out of sheer curiosity, and like many people my first distribution was Ubuntu. It was ok, but I wanted to try other distros and I used BLAG Linux for a while then wound up on Debian testing for a good bit. Then I went sorta apeshit and tried out about 20 different distributions before finally settling on Slackware which is still my favorite eventhough I'm currently running AntiX. Actually it's kind of a tie between...
Member
Posted in Uncategorized
Views 879 Comments 1 fullmetalgerbil is offline
Old

Digital versus analog...

Posted 11-25-2009 at 02:59 PM by Lufbery (The Slacker's Blog)

The "holiday shopping season" is nearly upon us, which means that the holiday shopping season advice columns are here too. I just read this one from PC Mag "What Not to Buy in 2009" and it really bugged me. The basic gist of the advice seemed to revolve around getting the most value for one's money, but it failed to really address just how much value can be had for how much money.

Take for instance, the advice to get an e-book reader. The columnist's advice was...
Senior Member
Posted in Uncategorized
Views 798 Comments 0 Lufbery is offline
Old

OOM Killer and acquisitions...a match made in heaven!

Posted 11-25-2009 at 09:17 AM by rocket357 (Musings on technology, philosophy, and life in the corporate world)
Updated 11-25-2009 at 09:28 AM by rocket357

Yesterday afternoon one of my coworkers enlisted the help of employees company wide to load test a project we'd worked on together about a year ago. He'd made significant changes to the application server and wanted to see how much the server could handle in raw traffic/requests. So at 2:30 PM, half of the company I work for started hitting the application server running bogus reports...

I watched the PostgreSQL database backend while all of this was going on. By 2:34 PM, the system...
Member
Views 972 Comments 0 rocket357 is offline

  



All times are GMT -5. The time now is 04:46 PM.

Main Menu

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration