<div dir="ltr"><div style>Hi Mario,</div><br>On 21 March 2013 20:38, Mario Gzuk <<a href="mailto:mariogzuk@technikz.de">mariogzuk@technikz.de</a>> wrote:<br>> Am 21.03.2013 18:12, schrieb Kevin Roy:<br>>> That's weird because as far as i can remember, I've already made package<br>
>> with<br>>> only one command in GLPI but i can't remember what are the requirements.<br>>> I should check that ...<br>><br>><br>> That yould be nice... I only need an example how I can do that...<div>
<br></div><div style>I think the following json snippet should do the trick but i can't test it right now :</div><div style><div><br></div><div>###snip###<br></div><div>{</div><div>    "jobs": {</div><div>        "checks": [</div>
<div><br></div><div>        ],</div><div>        "associatedFiles": [</div><div><br></div><div>        ],</div><div>        "actions": [</div><div>            {</div><div>                "cmd": {</div>
<div>                    "exec": "dir",</div><div>                    "retChecks": [</div><div>                        {</div><div>                            "type": "okCode",</div>
<div>                            "value": [</div><div>                                "0"</div><div>                            ]</div><div>                        }</div><div>                    ]</div>
<div>                }</div><div>            }</div><div>        ]</div><div>    },</div><div>    "associatedFiles": [</div><div><br></div><div>    ]</div><div>}</div></div><div>###snip###</div><div><br>>>> - are the files which are downloaded via associatedFiles automaticly<br>
>>> deleted<br>>>> after the jobs are done or should this be specified on the jobs:delete<br>>>> list?<br>>><br>>> They normally are deleted whenever the job is completed or in error.<br>
>> The only exception is when P2P is enabled : the dowloaded files marked<br>>> as P2P are kept until the retention period.<br>>><br>>> Cheers,<br>>><br>>> -- Kevin Roy<br>>><br>><br>
> Ok, the files which will be executed (e.g. test.bat) will be deleted that is<br>> true. But the filecontent is also available at<br>> .../var/bla/deploy/fileparts/private/1364129200/a/6/1ea1bc<br>> This files also should be deleted because (for my situation) there might be<br>
> sensetive data inside, and so it would be nessesary that this files get<br>> deleted to... Is this a feature request?<br><br>The fileparts should be kept by the agent only when a file is marked with P2P: </div><div>
<br>###snip###<br></div><div><div>{</div><div>            "name": "Firefox Setup 11.0.exe",</div><div>            "p2p": 1,</div><div>            "mimetype": "application\/x-ms-dos-executable",</div>
<div>            "filesize": 16287888,</div><div>            "p2p-retention-duration": "365",</div><div>            "uncompress": 0,</div><div>            "multiparts": [</div>
<div style>###snip###</div><br>> And a last question. I use the wmi to determine the language of the<br>> operating system in windows:<br>> <a href="http://uranos.svn.sourceforge.net/viewvc/uranos/z/bin/getlang.js">http://uranos.svn.sourceforge.net/viewvc/uranos/z/bin/getlang.js</a><br>
> When I run this normaly I get "en" or "de" -> but when it is executed<br>> through the deploy task is says that the language is "C"... What the<br>> (perl)... ;) How can I correct this?<br>
<br></div><div style>I'm not sure I can help you on this as i'm not aware of WMI.</div><div style>All I can say is that the agent execute a command inside a temporary batch and "C" may be the default language set when executing perl on windows.</div>
<div style>This needs confirmation with some Perl expert (like Goneri or Guillaume).</div><div style><br></div><div style>Cheers,</div><div style><br></div><div style>-- Kevin Roy</div></div>