Seems like it's decided to work now, thx. Return values are read off the stdout. For example sending mplayer the command "get_percent_pos\n" returns "ANS_PERCENT_POSITION=0" on the stdout and "get_time_length\n" returns "ANS_LENGTH=foo" (foo is the amount of seconds, integer number). Carl