Le dim. 16 sept. 2018 à 11:08, sébastien dagnicourt <
sebastien.dagnico...@gmail.com> a écrit :
>
> OK, just for information, the python script is realy simple:
>
> #!/usr/bin/python3
> import owncloud
> import sys
>
>
> f = sys.argv[1].replace('ocfl://','')
> fd = sys.argv[2]
> oc = owncloud.Client('https://mynextcloud_url')
> oc.login('login','password')
> oc.get_file(f, fd)
>
> User is the same for launching the liquidsoap command or the python one
from the shell.
> The thing I don't understand is that the command works under liquidsoap
also because I have a good file under /tmp/( the
 "/tmp/liq-process971096..txt" written in the log)
> It's as if I fecth a file but liquidsoap doesn't know the name of it (the
one under /tmp)
> May me I miss something here  ?
>
> With full debug I have this line :
> Failed to resolve "process:.txt,/data/djt/ls/get_file.bash
'//genre1/playlist1.txt' $(output)"! For more info, see server command
'trace 1'
>
> Btw the only env difference between from liquidsoap or from a shell is
the LANG variable.
> Changed it to confirm that it's the same in the end ;)

Ok, here's another thing: the way liquidsoap terminates a program when run
like this is by closing its standard input and waiting for it to terminate.
The unix API doesn't give many other ways to do so.

You may want to add an explicit exit(0) at the very end of the script to
make sure it terminates properly.

Romain
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to