Thank you Samuel, I used it in a wrong format.

Best regards,
        *Ákos Veres*

_____________________________________________
http://akos.me - A little about me.


On Wed, Dec 11, 2013 at 6:59 PM, Samuel Mimram <[email protected]> wrote:

> Hi,
>
> It seems to be working here. Here is what I tested:
>
> s = playlist("~/Music")
> s = mksafe(s)
>
> def ot(m) =
>   system("echo #{string.utf8.escape(m[\"filename\"])} >> /tmp/test")
> end
>
> s = on_track(ot, s)
>
> output.pulseaudio(s)
>
> I see the titles of the played songs in the file /tmp/test as expected...
>
> ++
>
> Sam.
>
> On Mon, Dec 9, 2013 at 9:42 AM, Akos Veres <[email protected]> wrote:
> > Hi Samuel,
> >
> > Thank you for your help, I've tried figuring out the syntax to use so
> I've
> > come up with:
> >
> > system("/home/radio/scripts/data.sh " ^ string.utf8.escape(m["filename"])
> > ^"")
> >
> > Which doesn't work, I'm sending empty strings. Any help or docs I can see
> > this in a working habbitat?
> >
> > Thank you very much.
> >
> > Best regards,
> >         Ákos Veres
> >
> > _____________________________________________
> > http://akos.me - A little about me.
> >
> >
> > On Sun, Dec 8, 2013 at 10:03 AM, Samuel Mimram <[email protected]>
> wrote:
> >>
> >> Hi,
> >>
> >> Yes, please have a look to string.escape and string.utf8.escape on
> >> http://liquidsoap.fm/doc-svn/reference.html
> >>
> >> Cheers,
> >>
> >> Samuel.
> >>
> >> On Sat, Dec 7, 2013 at 3:26 PM, Akos Veres <[email protected]> wrote:
> >> > Hi Guys,
> >> >
> >> > I wanted to ask if it is possible to escape some characters in the
> >> > liquidsoap scripts? I'm trying to send the whole m["filename"] to a
> bash
> >> > script, I just can't because of special characters. If there's any way
> >> > to
> >> > escape those, please let me know.
> >> >
> >> > Thank you in advance.
> >> >
> >> > Best regards,
> >> >         Ákos Veres
> >> >
> >> > _____________________________________________
> >> > http://akos.me - A little about me.
> >> >
> >> >
> >> >
> ------------------------------------------------------------------------------
> >> > Sponsored by Intel(R) XDK
> >> > Develop, test and display web and hybrid apps with a single code base.
> >> > Download it for free now!
> >> >
> >> >
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> >> > _______________________________________________
> >> > Savonet-users mailing list
> >> > [email protected]
> >> > https://lists.sourceforge.net/lists/listinfo/savonet-users
> >> >
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> Sponsored by Intel(R) XDK
> >> Develop, test and display web and hybrid apps with a single code base.
> >> Download it for free now!
> >>
> >>
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> >> _______________________________________________
> >> Savonet-users mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/savonet-users
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Sponsored by Intel(R) XDK
> > Develop, test and display web and hybrid apps with a single code base.
> > Download it for free now!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Savonet-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/savonet-users
> >
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to