OS : Linux
PHP Version : 7.4.33
Software : Apache/2.4.6 (CentOS) PHP/7.4.33
Information System : Linux apprendre2 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Disable Function : ó oBú]c @ s8 d Z d d l m Z m Z d d l m Z d d l m Z d d l m Z d d l Z d d l m Z e g Z i d d 6d d 6d d 6e d ƒ d 6e d 6e d ƒ g d 6e d 6d d 6i i d d 6i i d d 6i d d 6d 6i d d 6g d 6d 6e d 6e d 6d d 6g d 6d 6d 6Z e e ƒ Z d! „ Z d S(" sE Runcmd: run arbitrary commands at rc.local with output to the consoleiÿÿÿÿ( t get_schema_doct validate_cloudconfig_schema( t ALL_DISTROS( t PER_INSTANCE( t utilN( t dedentt cc_runcmdt idt Runcmdt names Run arbitrary commandst titles¬ Run arbitrary commands at a rc.local like level with output to the console. Each item can be either a list or a string. If the item is a list, it will be properly executed as if passed to ``execve()`` (with the first arg as the command). If the item is a string, it will be written to a file and interpreted using ``sh``. .. note:: all commands must be proper yaml, so you have to quote any characters yaml would eat (':' can be problematic) .. note:: when writing files, do not use /tmp dir as it races with systemd-tmpfiles-clean LP: #1707222. Use /run/somedir instead. t descriptiont distross runcmd: - [ ls, -l, / ] - [ sh, -xc, "echo $(date) ': hello world!'" ] - [ sh, -c, echo "=========hello world'=========" ] - ls -l /root - [ wget, "http://example.org", -O, /tmp/index.html ] t examplest frequencyt objectt typet arrayt stringt itemst oneOft additionalItemst additionalPropertiesi t minItemst requiredt runcmdt propertiesc C s© d | k r | j d | ƒ d St | t ƒ t j j | j d ƒ d ƒ } | d } y&