Re: php-triggered interactive script terminates
Joel Roth <[email protected]>
| Newsgroups | gmane.comp.audio.ecasound.general |
|---|---|
| Message-ID | <20120926072115.GA24805@sprite> |
On Tue, Sep 25, 2012 at 10:51:04AM +0000, spencer marsden wrote:
>
> Hi,
> apologies for incorrect nomenclature of procedures
>
> Problem: wanting to launch ecasound engine in interactive mode from php, with jack_transport controlling playback.
>
>
> I have a php script that calls shell scripts which trigger playback of ecasound correctly. Ecasound is using jack, which I have invoked as www-data.
> scripts such as
>
> #!/bin/bash
> # play
> set -x on
> TERM=linux
> export TERM
> ecasound -i /var/www/upload/*.wav -o jack,system
> set -x off
>
>
> work fine, both from terminal (as www-data) and exec from php generated web page:
>
> else if
> ($_GET['action'] == "play") {
> $command = '/var/www/TRANSPORT/linuxplay.sh';
> //$output = passthru($command . ' 2>&1 &');
> $output = exec($command . ' 2>&1', $output_array, $return_val);
>
> so far so good, but the following script:
>
> #!/bin/bash
> # engine_start
> set -x on
> TERM=linux
> export TERM
> ecasound -c -i /var/www/upload/*.wav -o jack,system -G:jack,hereiam,recv -E engine-launch -K ;
Hi Spencer,
The -c flag specified the interactive mode, and therefore
requires a terminal.
Regards,
Joel
--
Joel Roth
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ecasound-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ecasound-list