[mythtv-users] Channel Script Timeout
scott at tbwifi.ca
scott at tbwifi.ca
Tue Mar 24 17:02:29 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 $* &
>
thx Jan
I assume from this that I will require nothing special to deal with the
receipt of the channel arguments in changesub.sh, and that it would be
written to look identical to a standard channel change script?
Scott
More information about the mythtv-users
mailing list