0

I am running a jar file from python. This jar must be run as administrator in order to work. the python script is run in a jenkins job. Is there a way to run the jar/python script as and administrator? either from the jenkins job - or modify the python script.

with subprocess.Popen(command,
                      cwd=tool_dir,
                      stdout=subprocess.PIPE,
                      stderr=subprocess.PIPE,
                      shell=True) as proc:

    try:
        outs, errs = proc.communicate(timeout=1000)

Thank you!

Maya Saias
  • 37
  • 9

0 Answers0