• commandOS()


    -- end of commandOS.py program in 04

    Purpose: execute an OS command and return results
    Form: commandOS(strCmd) -> strResult
    Reason: permit code to execute OS command and use results
    Summary: executes an OS command, saves results, returns results
    Example: strD=commandOS("dir") will return list of dir contents
    Help: type commandOS("-h") for help
    Warning 1: Parm1 must be a str containing an OS command
    Note 1: error checking prevents system errors.
    Requires:
    from ix_all import commandOS
    Python Verson: 3
    Globals: none
    External Functions:
    Imports: none
    Classes: none
    Files: temp result file
    Version: none
    For: PiR2 Area Controller and MakPiADC
    Repository: ix_all.py Function Library
    Author: D@CC ( David@ColeCanada.com )
    Date Created : 2021FJun26
    Date Tested   : 2021FJun26
    Date Modified: 2021FJun26
    Source: www na on 20xxZmmm##
    Code: commandOS() by D@CC (David at ColeCanada.com)

  • #/selectCode_commandOS_macro.py.txt