Fedora Linux Support Community & Resources Center
Prev Previous Post   Next Post Next
  #1  
Old 1st October 2010, 10:59 PM
atavus Offline
Registered User
 
Join Date: Jan 2010
Posts: 16
macossafari
Communication between Bash and web page?

I'm working on a web-based interface for bash scripts used to rip DVDs and CDs. The goal is to package it as an app for the Amahi project. The bash scripts and web server are running on the same box.

I've run into a tough technical hurdle - I need bash to push a popup dialog box to open in the web page interface with <OK> <CANCEL> buttons that get returned to the script.

My web coding kung-fu is not up to the challenge. Mootools looks promising but I don't know how to implement it.

However, I am thinking about a method whereby the bash script creates or modifies a variable in a file and then goes into a loop where it checks for the variable to be modified again before continuing. PHP or javascript in the web page is also in a loop that checks the file once every few seconds and upon finding the necessary variable opens the dialog box. After the user makes his selection the variable is again changed by the web page script, the bash script loop finds the change and continues.

I've tried writing a loop checker in php but it just locks the page. Any suggestions?
Reply With Quote
 

Tags
bash, communication, page, web

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Up/Down keys through bash history in xterm; FC11 DZ* Using Fedora 0 24th June 2009 12:10 AM
Serial (rs232) communication BASH script, port initialisation problem HogePief Using Fedora 2 28th December 2007 06:55 PM
Communication problem between XP and FC5 almiller Servers & Networking 0 29th July 2006 06:38 PM
APC UPS and PBEAgent No Communication gandalf2041 Hardware & Laptops 5 3rd October 2005 05:28 PM


Current GMT-time: 05:30 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat