How to run via CLI (MAS filebot)

Support for macOS users
Post Reply
alael
Posts: 7
Joined: 05 Oct 2015, 13:02

How to run via CLI (MAS filebot)

Post by alael »

Hello,

Bought the app on the MAS but i am unable to find the CLI interface, I need this to run via cron scheduler as i can't bother to use manually the GUI,

Any help?
User avatar
rednoah
The Source
Posts: 22985
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to run via CLI (MAS filebot)

Post by rednoah »

:idea: Please read the FAQ and How to Request Help.
alael
Posts: 7
Joined: 05 Oct 2015, 13:02

Re: How to run via CLI (MAS filebot)

Post by alael »

rednoah wrote:@see viewtopic.php?f=4&t=2049
Hi,

Installed homebrew and all the stuff if i run:

filebot -script 'fn:amc' /Volumes/Download/anime-tmp/ --output /Volumes/Download/ --action move -non-strict --conflict skip --lang en --def 'ut_label=anime' 'clean=y' 'skipExtract=y' 'minFileSize=100000000' 'excludeList=.filebot' --log info --log-file '/Volumes/Download/log/1451163407086.log' >> '/Volumes/Download/log/1451163407086.log' 2>&1

i get:

Apr 16, 2016 3:21:15 PM net.filebot.Main main
SEVERE: Unexpected error during startup
java.io.IOException: Operation not supported
at sun.nio.ch.FileDispatcherImpl.lock0(Native Method)
at sun.nio.ch.FileDispatcherImpl.lock(FileDispatcherImpl.java:90)
at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:1073)
at java.nio.channels.FileChannel.lock(FileChannel.java:1053)
at net.filebot.Main.main(Main.java:128)

Same error appear on the synology package any idea?
User avatar
rednoah
The Source
Posts: 22985
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How to run via CLI (MAS filebot)

Post by rednoah »

Are we taking about FileBot on Mac or FileBot on Synology NAS now?

The command looks like something FileBot Node would run? Did you just copy it and try to run it on your Mac?

You're using the same file for filebot log output and shell IO redirection. That'll cause a conflict or a deadlock. Don't use IO redirection.
:idea: Please read the FAQ and How to Request Help.
alael
Posts: 7
Joined: 05 Oct 2015, 13:02

Re: How to run via CLI (MAS filebot)

Post by alael »

rednoah wrote:Are we taking about FileBot on Mac or FileBot on Synology NAS now?

The command looks like something FileBot Node would run? Did you just copy it and try to run it on your Mac?

You're using the same file for filebot log output and shell IO redirection. That'll cause a conflict or a deadlock. Don't use IO redirection.
Yes i have tried to use the command used on my linux box on the mac,

Based on what you said i did:

filebot -script 'fn:amc' /Volumes/Download/anime-tmp/ --output /Volumes/Download/ --action move -non-strict --conflict skip --lang en --def 'ut_label=anime' 'clean=y' 'skipExtract=y' 'minFileSize=100000000' 'excludeList=.filebot' --log info --log-file '/Volumes/Download/log/log.bot.log' >> '/Volumes/Download/log/log.shell.log' 2>&1

The progress stop in 1-2 second with this output:

Apr 16, 2016 5:32:23 PM net.filebot.Main main
SEVERE: Unexpected error during startup
java.io.IOException: Operation not supported
at sun.nio.ch.FileDispatcherImpl.lock0(Native Method)
at sun.nio.ch.FileDispatcherImpl.lock(FileDispatcherImpl.java:90)
at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:1073)
at java.nio.channels.FileChannel.lock(FileChannel.java:1053)
at net.filebot.Main.main(Main.java:128)
alael
Posts: 7
Joined: 05 Oct 2015, 13:02

Re: How to run via CLI (MAS filebot)

Post by alael »

Hi,

It seems that by removing the IO redirect the problem si now solved any idea why it worked fine for years and now it does not?

thanks,
Post Reply