Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Launch a bash script with sudo command

$
0
0

Hello,

 

I'm trying to launch a bash script with the guest script manager package. There is a sudo command inside the script and it's causing me trouble.

 

First error is : sudo: sorry, you must have a tty to run sudo

 

So, I tried to launch the sudo command with ssh -t -t localhost sudo <command> but I get a new error (and still the other) : tcgetattr: Inappropriate ioctl for device

 

I don't know how to make it work as the root user doesn't have permission to log in.

 

So, is launching a sudo command from vCO really possible ?

 

Thanks !


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>