You are right, thank you!
Perhaps it's a good idea to add this to liquidsoap website, because it's a
little bit strange bahavior when you can acheive liquidsoap working under
console without dashes, and can't do same from website :)
2013/2/9 Xavier Cazin <[email protected]>
> Hi Alexander,
>
> I'd say that you're forgetting the "--" separator :
> http://comments.gmane.org/gmane.comp.audio.liquidsoap.user/4817
>
> Best,
> X.
>
> On Sat, Feb 9, 2013 at 12:58 PM, Alexander <[email protected]> wrote:
>
>> Hello,
>>
>> i would like to implement web api for starting/stopping liquidsoap
>> processes.
>> i've tried simply to start liquidsoap process from php, but my liquidsoap
>> script said that no argv parameter was specified:
>>
>>> /home/liquidsoap/check-argv.liq 14
>>
>>
>> More over, liquidsoap started to complain about my variables:
>>
>>> The result of evaluating this term would be dropped, but it does not
>>> have type unit or active_source. Use ignore(...) if you meant to drop it,
>>> otherwise this is a sign that your script does not do what you intend
>>
>>
>> i thought there is an issue with www-data apache2 default user, so i made
>> simple test.sh script, that returns first argv parameter:
>>
>>> #!/bin/sh
>>> echo $1;
>>
>>
>> And it returned correct value when i called it:
>>
>>> shell_exec('/home/test.sh 1234');
>>
>>
>> Code i've used for testing liquidsoap argv() function:
>>
>>> #!/usr/bin/liquidsoap
>>> MYPARAM = argv(1);
>>> print(MYPARAM);
>>
>>
>> When i call check-argv.liq from shell, it works fine. Could you assist
>> please, what is going wrong?
>>
>> --
>> Kind regards,
>> Alexander.
>>
>>
>> ------------------------------------------------------------------------------
>> Free Next-Gen Firewall Hardware Offer
>> Buy your Sophos next-gen firewall before the end March 2013
>> and get the hardware for free! Learn more.
>> http://p.sf.net/sfu/sophos-d2d-feb
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>
>>
>
>
> --
> -- Xavier Cazin
>
> ------------------------------------------------------------------------------
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013
> and get the hardware for free! Learn more.
> http://p.sf.net/sfu/sophos-d2d-feb
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>
--
Kind regards,
Alexander.
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users