+
Skip to content

Command "hostname" is not portable #1212

@pditommaso

Description

@pditommaso

The hostname command may not exist in all environments and cause the pipeline execution to fail

def hostname = "hostname".execute().text.trim()

Consider replacing it with

def hostname = ['sh', '-c', 'echo $HOSTNAME'].execute().text.trim()

x-ref nextflow-io/nextflow#2199

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

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载