Bug #116
Having multiple commands in the Path causes issues in Custom Script
| 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}}