# Running FSCrawler in Debian 10, results in \`command not found\`

**URL:** <https://discuss.elastic.co/t/running-fscrawler-in-debian-10-results-in-command-not-found/290095>\
**Category:** Elasticsearch\
**Created:** [November 24, 2021, 5:09pm UTC](https://discuss.elastic.co/t/running-fscrawler-in-debian-10-results-in-command-not-found/290095 "2021-11-24T17:09:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ehsan\_kabiri\_33](https://avatars.discourse-cdn.com/v4/letter/e/b77776/32.png) [@ehsan\_kabiri\_33](https://discuss.elastic.co/u/ehsan_kabiri_33)\
**Post date:** [November 24, 2021, 5:09pm UTC](https://discuss.elastic.co/t/running-fscrawler-in-debian-10-results-in-command-not-found/290095/1 "2021-11-24T17:09:27Z")

</div>

I'm trying to run fscrawler on Debian 10. I have downloded both `fscrawler-es7-2.8-SNAPSHOT.zip` and `fscrawler-es7-2.7.zip` then exctract them to `/home/myname/fscrawler`, but running these codes always results in `command not found` !!  
First I ran these 🙂

```auto
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64

```

and then I tried:

```auto
myname@debian:~/fscrawler$
sudo bin/fscrawler job_name
sudo ./bin/fscrawler job_name
sudo /bin/fscrawler job_name

sudo /bin/fscrawler --config_dir /home/ehsan/fscrawler data >> /home/ehsan/fscrawler/logs/fscrawler.log 2>&1

```

I created `/logs/fscrawler.log`. I do not know what to do to run this crawler?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 24, 2021, 5:27pm UTC](https://discuss.elastic.co/t/running-fscrawler-in-debian-10-results-in-command-not-found/290095/2 "2021-11-24T17:27:28Z")

</div>

What is the output of:

```auto
ls -l ~/fscrawler

```

---

<div class="post-metadata">

**Author:** ![ehsan\_kabiri\_33](https://avatars.discourse-cdn.com/v4/letter/e/b77776/32.png) [@ehsan\_kabiri\_33](https://discuss.elastic.co/u/ehsan_kabiri_33)\
**Post date:** [November 24, 2021, 6:56pm UTC](https://discuss.elastic.co/t/running-fscrawler-in-debian-10-results-in-command-not-found/290095/3 "2021-11-24T18:56:07Z")

</div>

Thanks for quick replying.

```auto
echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk-amd64

ls -l ~/fscrawler
total 52
                drwxr-xr-x 2 ehsan ehsan 4096 Nov 24 11:39 bin
                drwxr-xr-x 2 ehsan ehsan 4096 Nov 24 11:39 config
                drwxr-xr-x 2 ehsan ehsan 16384 Nov 24 11:40 lib
                -rw-r--r-- 1 ehsan ehsan 11358 Oct 24 23:47 LICENSE
                drwxr-xr-x 2 ehsan ehsan 4096 Nov 24 11:47 logs
                -rw-r--r-- 1 ehsan ehsan 137 Oct 24 23:47 NOTICE
                -rw-r--r-- 1 ehsan ehsan 5642 Oct 24 23:47 README.md

```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 25, 2021, 9:32am UTC](https://discuss.elastic.co/t/running-fscrawler-in-debian-10-results-in-command-not-found/290095/4 "2021-11-25T09:32:05Z")

</div>

Sounds good.

Could you run:

```auto
cd ~/fscrawler/bin
ls -l
./fscrawler

```

---

<div class="post-metadata">

**Author:** ![ehsan\_kabiri\_33](https://avatars.discourse-cdn.com/v4/letter/e/b77776/32.png) [@ehsan\_kabiri\_33](https://discuss.elastic.co/u/ehsan_kabiri_33)\
**Post date:** [November 26, 2021, 5:58am UTC](https://discuss.elastic.co/t/running-fscrawler-in-debian-10-results-in-command-not-found/290095/5 "2021-11-26T05:58:34Z")

</div>

Thanks for replying.

```auto
ehsan@debian:~/fscrawler/bin$ ls -l
      total 8
      -rw-r--r-- 1 ehsan ehsan 1620 Oct 24 23:47 fscrawler
      -rw-r--r-- 1 ehsan ehsan 1739 Oct 24 23:47 fscrawler.bat

```

```auto
ehsan@debian:~/fscrawler/bin$ sudo ./fscrawler
         sudo: ./fscrawler: command not found

```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 28, 2021, 12:05am UTC](https://discuss.elastic.co/t/running-fscrawler-in-debian-10-results-in-command-not-found/290095/6 "2021-11-28T00:05:22Z")

</div>

The files are not executable.

```
chmod u+x fscrawler 
./fscrawler 

```

Should work

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 26, 2021, 12:05am UTC](https://discuss.elastic.co/t/running-fscrawler-in-debian-10-results-in-command-not-found/290095/7 "2021-12-26T00:05:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
