Bug #116

Having multiple commands in the Path causes issues in Custom Script

Added by {{author}} {{age}} ago. Updated {{value}} 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 {{author}} {{age}} ago

  • {{label}} set to {{value}}
  • {{label}} changed from {{old}} to {{new}}
  • {{label}} set to {{value}}
  • {{label}} set to {{value}}

Updated by {{author}} {{age}} ago

  • {{label}} changed from {{old}} to {{new}}

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