You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I getting in a problem using the exclude / include parameter.
If I am using this line, all works fine: fswatch /data/webdav/data --event Created | xargs -I '{}' sh -c 'filename=$(basename ${1});cp $filename /data/compose/72/consume;rm $filename;' - {}
But if I use this one, no pdf file is recognized: fswatch /data/webdav/data --event Created -e ".*" -i ".*/[^.]*\\.pdf$" | xargs -I '{}' sh -c 'filename=$(basename ${1});cp $filename /data/compose/72/consume;rm $filename;' - {}
Can anyone help here? Is there any syntax issue?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
I getting in a problem using the exclude / include parameter.
If I am using this line, all works fine:
fswatch /data/webdav/data --event Created | xargs -I '{}' sh -c 'filename=$(basename ${1});cp $filename /data/compose/72/consume;rm $filename;' - {}
But if I use this one, no pdf file is recognized:
fswatch /data/webdav/data --event Created -e ".*" -i ".*/[^.]*\\.pdf$" | xargs -I '{}' sh -c 'filename=$(basename ${1});cp $filename /data/compose/72/consume;rm $filename;' - {}
Can anyone help here? Is there any syntax issue?
Thanks!
The text was updated successfully, but these errors were encountered: