[mythtv-users] Channel Script Timeout

Jan Ceuleers jan.ceuleers at computer.org
Tue Mar 24 16:46:17 UTC 2009


scott at tbwifi.ca wrote:
> Can someone share with me how to pass these arguments on to the other
> script and handle them properly in both?  I am not much of a programmer at
> this point I'm afraid.

 From man sh (in this case bash):

Special Parameters
The  shell  treats  several parameters specially.  These parameters may 
only be referenced; assignment to them is not allowed.
*      Expands to the positional parameters, starting from  one.   When
        the  expansion occurs within double quotes, it expands to a sin-
        gle word with the value of each parameter separated by the first
        character of the IFS special variable.  That is, "$*" is equiva-
        lent to "$1c$2c...", where c is the first character of the value
        of  the IFS variable.  If IFS is unset, the parameters are sepa-
        rated by spaces.  If IFS is  null,  the  parameters  are  joined
        without intervening separators.

So change your script to read as follows:

/usr/lib/bin/changesub.sh $* &

Cheers, Jan


More information about the mythtv-users mailing list