Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

trouble running shell/batch command on linux host #4224

rlmondragon ·

I'm having trouble running a command formatted in the following way:

hostname; id; ssh user@host "/home/user/some_script.sh"

I get the error Cannot run program "hostname;" The step works fine without the hostname; id;, but unfortunately we need to add that now to the command and can't get it working.

Locally on the build host, I can run this single line command just fine.

Some things I've tried:

  • putting the entire command line in quotes
  • using command line execution instead of shell/batch
  • running in legacy/non legacy mode (shell/batch and command line step types)

I'm not sure what else to try here. Is there a reason this doesn't work in the step and works locally? This particular server is running an older version of Quickbuild (6.0.28).

  • replies 1
  • views 1369
  • stars 0
robinshen ADMIN ·

Tested 6.0.28 on Ubuntu 18.04 and it works as expected. Please make sure you are using the step of type "Shell/Batch Command" instead of "Commandline Execution". Also please make sure that the option "Legacy Command Mode" is unchecked in advanced setting of the configuration. If this still does not work, please let me know the Linux distribution you are using.