@Joel_Santos_Rico wrote:
Hi,
I'm trying to run a script when the execution finishes. I'm trying with
exec
, but the syntax is wrong and I can't see why. Can somebody help me fix it?EDIT: I'm using the wrong plugin.
exec
runs commands on entries, and I want to run a script at the end of the execution (just once, to do some cleanup). Is that possible FROM flexget?My config file is:
schedules: # Run tasks at 6 and 18 - tasks: '*' schedule: hour: 6, 18 tasks: SeriesTask: rss: http://showrss.info/user/12345.rss?magnets=true&namespaces=true&name=null&quality=anyhd&re=null all_series: path: /mnt/Router_Stuff/Torrent/Series/{{series_name}} transmission: host: localhost port: 9091 username: myuser password: "mypassword" exec: auto_escape: yes on_output: for_accepted: echo "accepted {{title}} - {{url}}" | logger -t Flexget on_exit: start /mnt/Router_Stuff/scripts/FlexgetOnExit web_server: run_v2: true
The error I'm getting when I run
flexget execute
is(flexget) Joel@RT-AC56U:/tmp/home/root/.flexget# flexget execute 2018-04-04 17:48 CRITICAL manager [/tasks/SeriesTask/exec/on_exit] Got `start /mnt/Router_Stuff/scripts/FlexgetOnExit`, expected: dict 2018-04-04 17:48 CRITICAL manager Failed to load config file: Did not pass schema validation. Could not start manager: Did not pass schema validation.
Posts: 6
Participants: 3