# Shell runner Path problems

**URL:** <https://drone.discourse.group/t/shell-runner-path-problems/6304>\
**Category:** Drone Support\
**Created:** [June 11, 2020, 6:04pm UTC](https://drone.discourse.group/t/shell-runner-path-problems/6304 "2020-06-11T18:04:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![georgkrause](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/georgkrause/32/3439_2.png) [@georgkrause](https://drone.discourse.group/u/georgkrause)\
**Post date:** [June 11, 2020, 6:04pm UTC](https://drone.discourse.group/t/shell-runner-path-problems/6304/1 "2020-06-11T18:04:09Z")

</div>

Hello,

in order to deploy a tool on a remote host, I use the shell runner. it works fine in general, but sadly I run into some trouble executing some commands, more specifically pipenv. Its always complaining the exe cant be found or if I specify the absolute path, some python modules cannot be found:

> /home/_**/.local/bin/pipenv --version  
> Traceback (most recent call last):  
> File "/home/**_/.local/bin/pipenv", line 7, in   
> from pipenv import cli  
> ModuleNotFoundError: No module named ‘pipenv’

So I was curious and tried to find out which shell I am running:

> echo $0  
> /tmp/drone-S8T4V6iP9RIJSR4v/opt/

I am not sure, how to proceed. I expected Drone to just log in to my user and use the local environment in order to run commands. For some reasons this seems to be not true. Do I have a wrong understanding of how it works? Or is the problem caused by some weird special setup I did?

I am happy about any input, thanks in advance!

~Georg

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [June 11, 2020, 6:20pm UTC](https://drone.discourse.group/t/shell-runner-path-problems/6304/2 "2020-06-11T18:20:48Z")

</div>

the purpose of the `ssh` pipeline runner is to execute an entire pipeline (clone repository, execute commands, etc) on a remote machine using the ssh protocol. If you want to ssh into a remote machine and execute a few commands, as opposed to execute an entire pipeline, perhaps you instead want to use the ssh plugin with a `docker` pipeline? [http://plugins.drone.io/appleboy/drone-ssh/](http://plugins.drone.io/appleboy/drone-ssh/)
