Open C-Duv opened 8 years ago
have you try with reverse-slash \>
I tried with package command cmd /C "dir \>\> C:\fi-run.log"
: same issue.
When running agent (from CLI) with fusioninventory-agent.bat --debug
, I get:
'gt' n'est pas reconnu en tant que commande interne ou externe, un programme ex�cutable ou un fichier de commandes. 'gt' n'est pas reconnu en tant que commande interne ou externe, un programme ex�cutable ou un fichier de commandes.
Client logs (fusioninventory-agent.log) shows:
[... 12:36:57 2016][info] running task Deploy
[... 12:36:57 2016][debug] Free space on C:\Program Files\FusionInventory-Agent\var\https..__glpi.example.com_plugins_fusioninventory_\deploy: 27367
[... 12:36:58 2016][debug] 22/03/2016 12:21 1\FF222 ProduKey-machine.xml
[... 12:36:58 2016][debug] 07/03/2016 19:40 <REP> Program Files
[... 12:36:58 2016][debug] 22/03/2016 08:59 <REP> Program Files (x86)
[... 12:36:58 2016][debug] 07/03/2016 19:06 <REP> Users
[... 12:36:58 2016][debug] 16/03/2016 15:14 <REP> Windows
[... 12:36:58 2016][debug] 08/12/2015 18:18 <REP> Xerox
[... 12:36:58 2016][debug] 3 fichier(s) 25\FF493 octets
[... 12:36:58 2016][debug] 10 R\82p(s) 27\FF367\FF034\FF880 octets libres
[... 12:36:58 2016][debug]
[... 12:36:58 2016][debug] C:\Program Files\FusionInventory-Agent\var\https..__glpi.example.com_plugins_fusioninventory_\deploy\workdir\56f12ae3754f7>exit 1
[... 12:36:58 2016][debug] --------------------------------
[... 12:36:58 2016][debug] exit status: `1'
[... 12:36:58 2016][debug] ok, no check to evaluate.
[... 12:36:58 2016][debug] exitStatus: 1
I also tried to escape the \
(with a double \
): cmd /C "dir \\>\\> C:\fi-run.log"
: same issue.
When running agent (from CLI) with fusioninventory-agent.bat --debug
, I get:
La syntaxe du nom de fichier, de r�pertoire ou de volume est incorrecte. 'gt' n'est pas reconnu en tant que commande interne ou externe, un programme ex�cutable ou un fichier de commandes. 'gt' n'est pas reconnu en tant que commande interne ou externe, un programme ex�cutable ou un fichier de commandes.
Client logs (fusioninventory-agent.log) shows:
[... 12:47:38 2016][info] running task Deploy
[... 12:47:39 2016][debug] Free space on C:\Program Files\FusionInventory-Agent\var\https..__glpi.example.com_plugins_fusioninventory_\deploy: 27366
[... 12:47:41 2016][debug]
[... 12:47:41 2016][debug] C:\Program Files\FusionInventory-Agent\var\https..__glpi.example.com_plugins_fusioninventory_\deploy\workdir\56f12ea48f2f7>cd "C:\Program Files\FusionInventory-Agent\var\https..__glpi.example.com_plugins_fusioninventory_\deploy\workdir\56f12ea48f2f7"
[... 12:47:41 2016][debug]
[... 12:47:41 2016][debug] C:\Program Files\FusionInventory-Agent\var\https..__glpi.example.com_plugins_fusioninventory_\deploy\workdir\56f12ea48f2f7>cmd /C "dir \\>\\> C:\fi-run.log"
[... 12:47:41 2016][debug]
[... 12:47:41 2016][debug] C:\Program Files\FusionInventory-Agent\var\https..__glpi.example.com_plugins_fusioninventory_\deploy\workdir\56f12ea48f2f7>exit 1
[... 12:47:41 2016][debug] --------------------------------
[... 12:47:41 2016][debug] exit status: `1'
[... 12:47:41 2016][debug] ok, no check to evaluate.
[... 12:47:41 2016][debug] exitStatus: 1
could you try with GLPI 9.2 and the master version of the plugin ?
Sure: but is GLPI v9.2 really out?
in a few weeks
I have created a deploypackage with a file (
chocofi.bat
) the following command-type actions (because I'm trying to debug why my packages' files are not run: a whole other issue):And it seems the
>
symbol was transformed into an HTML entities because the agent on the target computer logs (debug
setting to 3) the following:cmd /C "echo C:\Program Files\Fusio[...]\deploy\workdir\5691b602710a1 > C:\fi-run.log"
was runFollowing text was logged into agent's log (instead of being written to
C:\fi-run.log
):Full log:
I am running: