Hi Guys , Now I try the script using the full path of the programs (/usr/bin , /usr/sbin ecc..) and all is running. Now I have a little problem: If I insert in the on connect or disconnect tag this script /etc/icecast/bin/script.sh and the script is this #!/bin/bash /bin/echo $1 > /etc/icecast/log/1.txt /bin/echo $1 > /etc/icecast/log/log2.txt Only the first line is going , the second no . I try with different programs , but always only the first line it's going. I've tried to do this thing: In the icecast xml insert the call to the script /etc/icecast/bin/script.sh In this script I insert only 1 instruction #!/bin/bash /etc/icecast/bin/script2.sh And in the script2 I insert this instructions #!/bin/bash /bin/echo $1 > /etc/icecast/log/1.txt /bin/echo $1 > /etc/icecast/log/log2.txt The result is the same , only the first line is going. How I can run more then 1 instruction? Best regards Goodbye Pierpaolo
Pierpaolo gull?a wrote:> Hi Guys , > > Now I try the script using the full path of the programs (/usr/bin , > /usr/sbin ecc..) and all is running. > > Now I have a little problem: > > If I insert in the on connect or disconnect tag this script > /etc/icecast/bin/script.sh > > and the script is this > > #!/bin/bash > /bin/echo $1 > /etc/icecast/log/1.txt > /bin/echo $1 > /etc/icecast/log/log2.txt > > > > Only the first line is going , the second no . I try with different > programs , but always only the first line it's going.I don't see why it would do that. icecast does not signal the process, so it would beg the question of what actually happens when the script is run. I'm assuming the process does finish and that 1.txt does contain what you think it should? you could try appending to 1.txt with >> and make sure log2.txt is not write protected. karl.
Hi,> > #!/bin/bash > > /bin/echo $1 > /etc/icecast/log/1.txt > > /bin/echo $1 > /etc/icecast/log/log2.txtIf you think it's just executing the first line, does it echo in log2.txt when deleting the first line? Otherwise you'd maybe like to test: --------------- #!/bin/bash /bin/echo $1 > /etc/icecast/log/1.txt; /bin/echo $1 > /etc/icecast/log/log2.txt; --------------- Best regards Sascha