Page 1 of 1

Problems with scheduled running from CLI

Posted: 10 Mar 2016, 21:05
by zoltanschafer
Hi,

I used to use FileBot GUI, but now started to use it from CLI, and set up some AMC to move the downloaded movies to Plex. If I run the script from CLI, it works fine. If I put exactly the same script to windows scheduler, it runs, but in the log file there is just an error, that it is not able to find my mounted network drive.

My script is simple:
Z drive is where the torrented movies are, Y is the drive Plex reads.

Code: Select all

filebot -script fn:amc --output "Y:/AppleTVReady" --action copy -non-strict "Z:/" --log-file amc.log --def excludeList=amc.txt
If I run from command line and all the files are already copied, this is the result in the log:

Code: Select all

Run script [fn:amc] at [Wed Mar 09 15:16:24 CET 2016]
Parameter: excludeList = amc.txt
Argument: Z:\
Using excludes: Y:\AppleTVReady\amc.txt (8)
Ignore hidden folder: Z:\.TemporaryItems
No files selected for processing
Failure (°_°)
If I run the same from scheduler, this is the result in the log:

Code: Select all

Run script [fn:amc] at [Wed Mar 09 22:28:27 CET 2016]
Parameter: excludeList = amc.txt
Argument: Z:\
File not found: Z:\
Failure (°_°)
Any ideas why it does not find Z drive, if I run it from the scheduler?

Thanks for your support in advance!

Re: Problems with scheduled running from CLI

Posted: 11 Mar 2016, 03:38
by rednoah
Permissions? Network drives are always tricky. Ask Google. ;)

As a side note, never pass in root drives. You should pass in a folder, NOT a drive.

Re: Problems with scheduled running from CLI

Posted: 11 Mar 2016, 06:19
by zoltanschafer
Hi!

I tried everything, running as administrator or not, changing from root to folder, does not help.
I prepared a batch file with the script. If I simple start the batch file, it runs without problems. If I run the batch file from the scheduler, it has the same symptom, it starts, but there is the File not found line in the log.
Any other suggestion for scheduler solution, which is more useable than Win7 scheduler?

Thanks in advance!