Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » All Things Unix » running a shell script via cgi web interface
Search Topic:
Uniqs:
814
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
FreeBSD traffic shaping - finding the right scheduler »
« I guess permissions are important.  
page: 1 · 2
AuthorAll Replies


Dennis
Premium,Mod
join:2001-01-26
Algonquin, IL
·AT&T Yahoo

Host:
Chicago
Users Find Hot Deals
Users find Hot Dea..
Requests for Hot D..
Home Repair & Impr..
reply to Dennis
Re: running a shell script via cgi web interface

woo hoo....successs. I was able to import a text file as a variable in a test script (not at my work computer right now)


--
My Blog. Because I desperately need the acknowledgement of others.

Visit the Judd Family website to see my kids!


nwrickert
sand groper
Premium,MVM
join:2004-09-04
Geneva, IL
·AT&T U-Verse
·AT&T Midwest

reply to Dennis
The above however did not work...
You should be using
echo "$input" > /tmp/router.txt
The quoting prevents reparsing of "$input".

If you just want to write all of stdin to a file, then
cat - > /tmp/router.txt
should accomplish that.
--
AT&T dsl; Westell 327w modem/router; openSuSE 11.0; firefox 3.0.10


Dennis
Premium,Mod
join:2001-01-26
Algonquin, IL
·AT&T Yahoo

Host:
Chicago
Users Find Hot Deals
Users find Hot Dea..
Requests for Hot D..
Home Repair & Impr..

1 edit
said by nwrickert See Profile :

The above however did not work...
You should be using
echo "$input" > /tmp/router.txt
The quoting prevents reparsing of "$input".

If you just want to write all of stdin to a file, then
cat - > /tmp/router.txt
should accomplish that.
Sure why not...when in doubt quotes won't hurt eh? :)

oh and btw a much better way of doing what I did above is this:

My Blog. Because I desperately need the acknowledgement of others.

Visit the Judd Family website to see my kids!
-
Forums » Tech and Talk » OS and Software » All Things UnixFreeBSD traffic shaping - finding the right scheduler »
« I guess permissions are important.  
page: 1 · 2


Sunday, 29-Nov 10:09:00 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [122] Time Warner Cable Fires Broadside At Broadcasters
· [112] New AT&T Ad Campaign Hits Back At Verizon
· [96] Apple Joins AT&T Verizon Snark Fest
· [87] New Bill Takes Aim At Higher Verizon ETFs
· [80] TiVo Sees Record Customer Losses
· [74] Verizon CEO: Hulu Will Be Dead Soon
· [74] Weekend Open Thread
· [69] In-Flight Internet Headed For Bumpy Landing?
· [62] Thanksgiving Open Thread
· [40] EFF Wages War On Fine Print
Most people now reading
· Windows 7 boot manager editing questions [Microsoft Help]
· Evading throttling with uTP / uTorrent 1.9a [TekSavvy]
· [Newsgroups] Newzleech down? [Filesharing Software]
· [Snow Leopard] NFS Mounts - no more Directory Utility [All Things Macintosh]
· [WIN7] Outlook express under Windows 7? [Microsoft Help]
· ToC 4th boss - Preliminary Strategy for Twin Valkyr [World of Warcraft]
· Digital Channel Lineup without a Box??? [Comcast Cable TV]
· Anyone have a problem [Software]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]