These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

"Not found" error trying to run post download command

user-1105

Hi - running on Ubuntu 14.10, and need to tell Myth to scan new videos after download. Runs fine if I include it as an option on the command line:

get_iplayer ... --command '/usr/bin/mythutil --scanvideos'

but trying to put the same command in the options file (so it will happen automatically on each download) gives:

sh: 1: /usr/bin/mythutil --scanvideos: not found
INFO: Command exit code 127 (raw code = 32512)
ERROR: Command Exit Code: 127

Can anyone cast any light on this?

user-2

If you have a problem with your options file, then post the contents of the file, or at least the relevant entry. Don't make us guess what you've done.  In this case, the most likely problem is that you edited the file yourself instead of using get_iplayer to add preferences, and you put quotes around your command string. If so, remove them.

user-1105

That did it, thank you.

And for the benefit of anyone else who comes here seeking help to resolve this unintuitive conundrum, the solution is to use --addprefs on the command line to add the correctly parsed line (including quotes) to the options file (without quotes), eg:
Code:
get_iplayer --addprefs ---command '/usr/bin/mythutil --scanvideos'

These forums are archived

See this post for further info