many thanks for your help. Yes, now I can run a script with "./foo.sh" from local directory or with "/home/tc/www/cgi-bin/pcp-functions" in that location. In the area of debug outputs I get a further "unknown command":
> > + MODE_NORMAL=20 > + MODE_ADVANCED=30 > + MODE_BETA=40 > + MODE_DEVELOPER=100 > + INSITU_DOWNLOAD=http://picoreplayer.sourceforge.net/insitu > + PCP_REPO=http://picoreplayer.sourceforge.net/tcz_repo > + PICORE_REPO_1=http://repo.tinycorelinux.net/ > + PICORE_REPO_2=http://distro.ibiblio.org/tinycore/ > + [ -eq 3 ] > sh: 3: unknown operand > + [ -f /etc/sysconfig/tcedir/squeezelite ] > + SQLT_BIN=/usr/local/bin/squeezelite > + echo -e \r\033[K > > + echo -e \033[1;31m > + RED= > + echo -e \033[1;32m > + GREEN= > + echo -e \033[1;33m > + YELLOW= > How can I solve this? Is it necessary to change all used scripts from "#!/bin/sh" to "#!/bin/sh -x"? And to your proposal power on/off: Yes I know, thank you, this works. But I have 4 instances of player running (with 4 different mac addresses) and I want to read the actual state of special player to set a special GPIO pin for muting an external amplifier independently. I have 8 mono amps with mute inputs. ------------------------------------------------------------------------ papa_arrugada's Profile: http://forums.slimdevices.com/member.php?userid=66821 View this thread: http://forums.slimdevices.com/showthread.php?t=108354 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix