The following command fails
watchman -j wm_trigger_sync_movies.json
failed to parse command from stdin: line 0, column 0, position 0: failed to read PDU size
While content of the file is
[
"trigger",
"/home/papanito/Videos/Movies/",
{
"name": "movies-sync",
"expression": [
"anyof",
[
"match",
"*.mkv",
"wholename"
],
[
"match",
"*.avi",
"wholename"
],
[
"match",
"*.mp4",
"wholename"
],
[
"match",
"*.srt",
"wholename"
]
],
"command": [
"rsync",
"/home/papanito/Videos/Movies/",
"10.0.0.10:/media/media/",
"-rv",
"--update",
"--ignore-existing",
"-e",
"ssh -i /home/papanito/.ssh/id_my_key -o BatchMode=yes -o StrictHostKeyChecking=accept-new"
],
"append_files": true
}
]
I can add it like this
watchman -- trigger /home/papanito/Videos/Movies movies-sync "*.avi" -- rsync ~/Videos/Movies/ 10.0.0.10:/media/media/ -rv --update --ignore-existing -e 'ssh -i /home/papanito/.ssh/id_paperless_sync -o Batode=yes -o StrictHostKeyChecking=accept-new'
What's wrong with my json file?
The following command fails
While content of the file is
I can add it like this
What's wrong with my json file?