# ReadyNas104: running Scanner on command line

**URL:** <https://forums.plex.tv/t/readynas104-running-scanner-on-command-line/146830>\
**Category:** General Discussions\
**Created:** [June 3, 2016, 8:55am UTC](https://forums.plex.tv/t/readynas104-running-scanner-on-command-line/146830 "2016-06-03T08:55:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aVe2000](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ave2000/32/7144_2.png) [@aVe2000](https://forums.plex.tv/u/aVe2000)\
**Post date:** [June 3, 2016, 8:55am UTC](https://forums.plex.tv/t/readynas104-running-scanner-on-command-line/146830/1 "2016-06-03T08:55:20Z")

</div>

Hello,

If i try to analyze the section with images in the gui it doesnt work for some of my subfolders. On the other hand, i was able to analyze images in the recently added section in the gui (clicking **…** on every single image) which did not have thumbnails. Now only some images in three folders are left without thumbnails. These i wanted to generate on commandline.

I had to ro run three export commands. I’ll post my commands tonight when i’m back home.  
I was able running the plex scanner via command line. As i ran the scanner i used something like

/apps/plexmediaserver/Binaries/Plex\ Media\ Scanner --scan --force --directory /data/Bilder/2006

So, running this scanner command **caused scanning the whole library but not only this one directory**. I see the output of the scanner, beginning every line with “GUI:” listing every section, movies, music etc. (yes, i am absolutly sure of this).

Actually i want to scan only some directories with images in it. Some folders didnt generate thumbnails(\*) so i want to force the generating. I think, the command must be something like

/apps/plexmediaserver/Binaries/Plex\ Media\ Scanner --generate --force --directory /data/Bilder/2006  
or  
/apps/plexmediaserver/Binaries/Plex\ Media\ Scanner --analyze --force --directory /data/Bilder/2006

If i run the last two commands i dont get any output at all and the scanner returns to commandline nearly immedately. Nothing changed.

In summary:

- running commandline scanner somehow doesnt seems to recognize the directory parameter.
- how do i generate thumbnails of jpeg images on command line?
- Bonus question: maybe the fast returning scanner is caused by crashing the scanner. Maybe its better to make a little script which calls the scanner for every image in a subfolder. Does scanning for single files work on command line?

Regards.

(\*) It’s an old problem i wasnt able to solve. Some images seems to cause the scanner to crash.

---

<div class="post-metadata">

**Author:** ![aVe2000](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ave2000/32/7144_2.png) [@aVe2000](https://forums.plex.tv/u/aVe2000)\
**Post date:** [June 3, 2016, 2:27pm UTC](https://forums.plex.tv/t/readynas104-running-scanner-on-command-line/146830/2 "2016-06-03T14:27:02Z")

</div>

i reposted this in the readynas forum. Please delete this.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 7, 2020, 9:26pm UTC](https://forums.plex.tv/t/readynas104-running-scanner-on-command-line/146830/3 "2020-01-07T21:26:21Z")

</div>


