|
From: | Carlos García |
Subject: | Re: [Fab-user] Running fabric on VMware ESXi |
Date: | Wed, 4 Feb 2015 11:27:10 +0100 |
[host] out: /bin/ls: line 1: syntax error: unexpected "("[host] out:Fatal error: run() received nonzero return code 2 while executing!Requested: /bin/lsExecuted: /bin/sh "/bin/ls"Aborting.
run( command, shell = False)
On 4 February 2015 at 09:18, Carlos García
<address@hidden> wrote:
> Hi list,
>
> I was trying to execute some commands on an ESX server, but I'm having some
> problems.
>
> ESX has a custom Linux, it lacks of sudo, bash among many other things.
>
> Anyway, I just want to run a simple ls so the code I'm trying to run is:
>
[...]
> And the output:
>
> [host] Executing task 'run_cmd'
> [host] run: ls
> [host] Login password for 'user':
> [host] out: /bin/sh: can't open 'ls'
> [host] out:
>
[...]
>
>
> What I'm doing wrong??
>
Lack of PATH environment or rather '/bin' in it.
Have you try to run /bin/ls instead of ls?
Wawrzek
--
Dr Wawrzyniec Niewodniczański or Wawrzek for short
PhD in Quantum Chemistry & MSc in Molecular Engineering
WWW: http://wawrzek.name E-MAIL: address@hidden
Linux User #177124
[Prev in Thread] | Current Thread | [Next in Thread] |