Skip to content

How do I run a specific script as sudo ? #38

@shrinidhi111

Description

@shrinidhi111

I loaded 3 scripts and embedded them using go-bindata.

In that 2 scripts needs to be run with admin privileges and 1 script should be run as user.

How can I run a specific script as sudo?

In the example code there is only a concept of calling bash functions in go and other way round.

	bash.Source("main.bash", Asset)
	status, err := bash.Run("main", os.Args[1:])
	

What about launching the whole script?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions