Accueil Forums Forums Lina Lina : Produit PowerShell pour Lina 6.0 Répondre à : PowerShell pour Lina 6.0

#17298
Jean-Marc HABYJean-Marc HABY
Participant

    Bonjour,

    Après quelques essais tout est OK, je suis juste tombé sur un petit “bug” depuis powershell sur Linux  (redhat 8) dans set.ps1 (ligne 490 et 515) car l’alias “compare” pour “compare-object” n’existe pas par défaut. C’est peut être plus un bug powershell qui ne propose pas les même alias selon l’OS…

    `
    compare: /usr/local/share/powershell/Modules/Atempo.Lina/6.1.0.1/Functions/Set.ps1:490
    Line |
    490 | if ( -not (compare $Tags @(“”)) ) {
    | ~~~~~~~
    | The term ‘compare’ is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
    `

    Et une requête supplémentaire pour la prochaine version 🙂  :
    Pouvoir gérer “l’état d’activité” (“BlockStatus” retourné par get-linaAgent) . Il me semble que ce n’est pas possible actuellement.

    Merci pour tout.

    jm