Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

run python script - inline - sudo

delaforge
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 10, 2018

Hi, 

How can I execute a script using an inline command "sudo python name_script.py"?

Thank you in advance for your help.

Regards

1 answer

0 votes
Gonchik Tsymzhitov
Community Champion
April 11, 2018

Hi! 

 

Could you clarify your use case? 

May be better """ sudo python ${bamboo.agentWorkingDirectory}/name_script.py """

https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html

 

 

Cheers,

Gonchik Tsymzhitov

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events