Skip to content

Enum Script Line-Ending Issues #3

@EnsonoStevenPerva

Description

@EnsonoStevenPerva

When running m-RAY on a Windows client, the line-endings when executing the enum scripts are not being converted, if necessary, when the files are transferred from the local host to the remote host. Optionally, for a z/OS Unix-compliant approach, the tr command could be used. I was able to make a local change to get this to function in run_script in run_external_scripts.py by adding this block before the # Make script executable block:

    # Convert any Windows-style line endings if necessary
    cmd = "tr -d '\r' < " + r_filepath + "> temp && mv temp " + r_filepath
    mainframe.c_send(client, cmd)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions