Bug #116

Having multiple commands in the Path causes issues in Custom Script

Added by Michael Mueller about 1 year ago. Updated about 1 year ago.

Status:Closed Start:06/15/2009
Priority:Normal Due date:
Assigned to:Luca Corbo % Done:

0%

Category:Core Spent time: -
Target version:1.3.4
Resolution:

Description

If you have multiple commands in the Custom Script Plugin it fails to work
as an example I sometimes cd to a dir before executing a script. so the path statement is
cd /opt/somewhere; somescript.sh

Trouble with this is it runs the first part remotely and the second on the local machine.

to fix this the sshUtil module needs to have the following lines changed

81                    '@' .
82 escapeshellarg($ip) .
83 ' ' .
84 $path_script . ' 2>&1';
85

TO

81                    '@' .
82 escapeshellarg($ip) .
83 ' "' .
84 $path_script . '" 2>&1';
85

Tested and works ok on my machines.

History

Updated by Luca Corbo about 1 year ago

  • Category set to Core
  • Status changed from New to Assigned
  • Assigned to set to Luca Corbo
  • Target version set to 1.3.4

Updated by Luca Corbo about 1 year ago

  • Status changed from Assigned to Closed

Added in r684.
The fix will appear in the package's next release.
Thank you for the report and for helping us make Ortro better.

Also available in: Atom PDF