These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

Dry run "command"

user-53

Is it possible to have a command run with passed in substitutions, based on an existing download.
e.g.
Code:
perl get_iplayer --download_suppressing_option(s) --pid=12345678 --command=mywrapper <pid> <dir> <fileprefix>

thanks in advance.

user-2

No. The value of
Code:
--command
is only executed when something is downloaded since the expanded values of some substitution parameters like
Code:
<dir>
and
Code:
<filename>
won't exist otherwise. If you use
Code:
--test
there is no download performed, so the command is not executed. You'll have to test your wrapper script separately.

These forums are archived

See this post for further info