Skip to content

RunCommand and "which" #1555

@yuppox

Description

@yuppox

Hi,

When I use RunCommand, I notice it doesn't have the full path set up, compared with a normal SSH login. For example. it's missing /usr/local/bin. I can work around that (by using the full path) or use CreateShell.

However, I also notice which doesn't work. There's no error message but the exit code is 1 and there's no output.

I assume this is expected but can anyone explain what's happening?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions