Hi Wawrzek, I have included the env variables (stripped in your mail?). The PATH is PATH=/bin:/sbin
Anyway, executing via fabric esx_run:"/bin/ls" throws a weirder message. [host] out: /bin/ls: line 1: syntax error: unexpected "(" [host] out: Fatal error: run() received nonzero return code 2 while executing! Requested: /bin/ls Executed: /bin/sh "/bin/ls" Aborting. Fabric is executing /bin/sh /bin/ls, so it looks like it' trying to run ls as a shell script. So I changed my code and run is now called with shell = False run( command, shell = False) And now it's working! Thanks anyway 2015-02-04 10:59 GMT+01:00 Wawrzek Niewodniczanski <m...@wawrzek.name>: > On 4 February 2015 at 09:18, Carlos García > <carlos.gar...@stoneworksolutions.net> 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: j...@wawrzek.name > Linux User #177124 > -- Carlos García Director de Operaciones Tel. 695 624 167 - 902 620 100 www.stoneworksolutions.net AVISO DE CONFIDENCIALIDAD Tanto este mensaje como todos los posibles documentos adjuntos al mismo son confidenciales y están dirigidos exclusivamente a los destinatarios de los mismos. Por favor, si Ud no es uno de dichos destinatarios, notifíquenos este hecho y elimine el mensaje de su sistema. Queda prohibida la copia, difusión o revelación de su contenido a terceros sin el previo consentimiento por escrito del remitente. En caso contrario, vulnerarán la legislación vigente
_______________________________________________ Fab-user mailing list Fab-user@nongnu.org https://lists.nongnu.org/mailman/listinfo/fab-user