<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://emmanuel.iffly.free.fr/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://emmanuel.iffly.free.fr/feed.php">
        <title>wiki program_lang</title>
        <description></description>
        <link>http://emmanuel.iffly.free.fr/</link>
        <image rdf:resource="http://emmanuel.iffly.free.fr/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-09-03T02:24:14+0200</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:bash&amp;rev=1713362777&amp;do=diff"/>
                <rdf:li rdf:resource="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:perl&amp;rev=1609532715&amp;do=diff"/>
                <rdf:li rdf:resource="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:perllib&amp;rev=1713518202&amp;do=diff"/>
                <rdf:li rdf:resource="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:php&amp;rev=1634026000&amp;do=diff"/>
                <rdf:li rdf:resource="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powercli_cmdb&amp;rev=1772731579&amp;do=diff"/>
                <rdf:li rdf:resource="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell&amp;rev=1641576728&amp;do=diff"/>
                <rdf:li rdf:resource="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell_linux&amp;rev=1779785634&amp;do=diff"/>
                <rdf:li rdf:resource="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell_misc&amp;rev=1668789901&amp;do=diff"/>
                <rdf:li rdf:resource="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell_powercli_misc&amp;rev=1760388925&amp;do=diff"/>
                <rdf:li rdf:resource="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell_print_vminfo&amp;rev=1649346571&amp;do=diff"/>
                <rdf:li rdf:resource="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell_print_vmscsi&amp;rev=1764279656&amp;do=diff"/>
                <rdf:li rdf:resource="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell_scripts&amp;rev=1772730053&amp;do=diff"/>
                <rdf:li rdf:resource="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:program_lang&amp;rev=1636647948&amp;do=diff"/>
                <rdf:li rdf:resource="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:python&amp;rev=1609532716&amp;do=diff"/>
                <rdf:li rdf:resource="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:python_base&amp;rev=1609532716&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://emmanuel.iffly.free.fr/lib/tpl/dokuwiki/images/favicon.ico">
        <title>wiki</title>
        <link>http://emmanuel.iffly.free.fr/</link>
        <url>http://emmanuel.iffly.free.fr/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:bash&amp;rev=1713362777&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-17T16:06:17+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>program_lang:bash</title>
        <link>http://emmanuel.iffly.free.fr/doku.php?id=program_lang:bash&amp;rev=1713362777&amp;do=diff</link>
        <description>BASH

IF

if or compare text
if [ &quot;$fname&quot; = &quot;a.txt&quot; ] || [ &quot;$fname&quot; = &quot;c.txt&quot; ]
if [ $a == $b -o $b == $c -o $a == $c ]

if and
if [ $a == $b -a $b == $c -a $a == $c ]
if [ &quot;$fname&quot; = &quot;a.txt&quot; ] &amp;&amp; [ &quot;$fname&quot; = &quot;c.txt&quot; ]
Use CSV file

Change column order</description>
    </item>
    <item rdf:about="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:perl&amp;rev=1609532715&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-01-01T21:25:15+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>program_lang:perl</title>
        <link>http://emmanuel.iffly.free.fr/doku.php?id=program_lang:perl&amp;rev=1609532715&amp;do=diff</link>
        <description>List Perl libraries</description>
    </item>
    <item rdf:about="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:perllib&amp;rev=1713518202&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-04-19T11:16:42+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>program_lang:perllib</title>
        <link>http://emmanuel.iffly.free.fr/doku.php?id=program_lang:perllib&amp;rev=1713518202&amp;do=diff</link>
        <description>Perl

List Perl libraries locations



List Perl libraries





Perl modules



cpan proxy





Or 


CPAN error while install modules

Dependencies between modules can be found in CPAN site

CPAN error

Error downloading with HTTP::Tiny: Not a CODE reference</description>
    </item>
    <item rdf:about="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:php&amp;rev=1634026000&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-10-12T10:06:40+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>program_lang:php</title>
        <link>http://emmanuel.iffly.free.fr/doku.php?id=program_lang:php&amp;rev=1634026000&amp;do=diff</link>
        <description>PHP / httpd

Get info on php

Here 2 equivalent commands


Here we can see php version and detail config like php.ini file, version of each module...


List loaded modules


Check PHP consistence, here bad version of mstring module, and time zone not set</description>
    </item>
    <item rdf:about="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powercli_cmdb&amp;rev=1772731579&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-03-05T18:26:19+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>program_lang:powercli_cmdb</title>
        <link>http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powercli_cmdb&amp;rev=1772731579&amp;do=diff</link>
        <description>VMware PowerCLI CMDB

List VM, Notes, and Custom attributes

list_vm_cust_attribute.ps1


#!/usr/bin/pwsh
# Read VM custom attributes and substitute , into the values by ;

 
$VMvCenterName = 'vcenter01'
$VMvCenterUser = 'vmware_RO'
$VMvCenterPass = 'Mypasswd'


###
###     Connect to vCenter
###

Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -WarningAction SilentlyContinue -ParticipateInCeip $false -DisplayDeprecationWarnings $false -confirm:$false
$VCSession = Connect-VIServer -Se…</description>
    </item>
    <item rdf:about="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell&amp;rev=1641576728&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-01-07T18:32:08+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>program_lang:powershell</title>
        <link>http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell&amp;rev=1641576728&amp;do=diff</link>
        <description>Powershell

Powershell on Linux

Powershell misc

Powershell Scripts by theme

Powercli misc commands</description>
    </item>
    <item rdf:about="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell_linux&amp;rev=1779785634&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-05-26T10:53:54+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>program_lang:powershell_linux</title>
        <link>http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell_linux&amp;rev=1779785634&amp;do=diff</link>
        <description>Powershell on Linux

Powershell can be downloaded by Microsoft, for example available in rpm package

&lt;https://learn.microsoft.com/fr-fr/powershell/scripting/install/installing-powershell-on-linux&gt;

Powershell

Download Powershell from github
https://github.com/PowerShell/PowerShell/
https://github.com/PowerShell/PowerShell/releases/download/v7.2.4/powershell-7.2.4-1.rh.x86_64.rpm</description>
    </item>
    <item rdf:about="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell_misc&amp;rev=1668789901&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-11-18T17:45:01+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>program_lang:powershell_misc</title>
        <link>http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell_misc&amp;rev=1668789901&amp;do=diff</link>
        <description>Powershell misc

Powershell man page

List all commands, you can add as parameter -examples -full -detailed


List Get-Command cmdlet with an alias


List all commands from a specific module


This command gets all of the cmdlets, sorts them alphabetically by the noun in the cmdlet name, and then displays them in noun-based groups:</description>
    </item>
    <item rdf:about="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell_powercli_misc&amp;rev=1760388925&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-10-13T22:55:25+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>program_lang:powershell_powercli_misc</title>
        <link>http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell_powercli_misc&amp;rev=1760388925&amp;do=diff</link>
        <description>Powercli misc commands

Converted to PowerCLI that looks like:

Get-VMHost | Set-VMHostAdvancedConfiguration -Name LVM.EnableResignature -Value 1
Get-VMHost | Get-VMHostStorage -RescanAllHBA -RescanAllVMFS
Get-VMHost | Set-VMHostAdvancedConfiguration -Name LVM.EnableResignature -Value 0</description>
    </item>
    <item rdf:about="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell_print_vminfo&amp;rev=1649346571&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-04-07T17:49:31+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>program_lang:powershell_print_vminfo</title>
        <link>http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell_print_vminfo&amp;rev=1649346571&amp;do=diff</link>
        <description>VMware print VMinfo</description>
    </item>
    <item rdf:about="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell_print_vmscsi&amp;rev=1764279656&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-11-27T22:40:56+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>program_lang:powershell_print_vmscsi</title>
        <link>http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell_print_vmscsi&amp;rev=1764279656&amp;do=diff</link>
        <description>VMware print VM SCSI id

Powershell script


Output:


&quot;VMName&quot;,&quot;DiskLabel&quot;,&quot;SCSIAddressVMX&quot;,&quot;SCSIBus&quot;,&quot;SCSIUnit&quot;,&quot;DiskSizeGB&quot;,&quot;VmdkPath&quot;,&quot;OS_Linux_Suggest&quot;,&quot;OS_Windows_Hint&quot;
&quot;web-prod-01&quot;,&quot;Hard Disk 1&quot;,&quot;scsi0:0&quot;,&quot;0&quot;,&quot;0&quot;,&quot;40.00&quot;,&quot;[datastore1] web-prod/web-prod.vmdk&quot;,&quot;/dev/sda (Lsscsi: [0:0:0:0])&quot;,&quot;Disque 0 (Location: Port 0, Target 0)&quot;
&quot;web-prod-01&quot;,&quot;Hard Disk 2&quot;,&quot;scsi0:1&quot;,&quot;0&quot;,&quot;1&quot;,&quot;100.00&quot;,&quot;[datastore1] web-prod/web-prod_1.vmdk&quot;,&quot;/dev/sdb (Lsscsi: [0:0:1:0])&quot;,&quot;Disque 1 (Location: Port 0, Target …</description>
    </item>
    <item rdf:about="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell_scripts&amp;rev=1772730053&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-03-05T18:00:53+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>program_lang:powershell_scripts</title>
        <link>http://emmanuel.iffly.free.fr/doku.php?id=program_lang:powershell_scripts&amp;rev=1772730053&amp;do=diff</link>
        <description>Powershell Scripts by theme

Backup VM

Add a disk to a VM

VMware find orphan vmdk

VMware print VMinfo

VMware print VM SCSI id

VMware PowerCLI CMDB</description>
    </item>
    <item rdf:about="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:program_lang&amp;rev=1636647948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-11-11T17:25:48+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>program_lang:program_lang</title>
        <link>http://emmanuel.iffly.free.fr/doku.php?id=program_lang:program_lang&amp;rev=1636647948&amp;do=diff</link>
        <description>Perl

Python

Bash

Powershell

PHP / httpd</description>
    </item>
    <item rdf:about="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:python&amp;rev=1609532716&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-01-01T21:25:16+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>program_lang:python</title>
        <link>http://emmanuel.iffly.free.fr/doku.php?id=program_lang:python&amp;rev=1609532716&amp;do=diff</link>
        <description>Python

Python base</description>
    </item>
    <item rdf:about="http://emmanuel.iffly.free.fr/doku.php?id=program_lang:python_base&amp;rev=1609532716&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-01-01T21:25:16+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>program_lang:python_base</title>
        <link>http://emmanuel.iffly.free.fr/doku.php?id=program_lang:python_base&amp;rev=1609532716&amp;do=diff</link>
        <description>Python bases

Modules and predefined functions

List molules


Import a python library


Import only one function from a library:


List all available Modules


Reading Module Documentation

To read the doc of a module, in terminal, type pydoc module_name, or in Python program call help(module_name).</description>
    </item>
</rdf:RDF>
