Link to home
Create AccountLog in
Avatar of SiHodgy007
SiHodgy007Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Insert Variable in Python subprocess

Hi,

I’m looking over inserting a variable into subprocess.

command=r"""ifcobfig server| tail -1 """
output=subprocess.check_output(command, shell=True)
Avatar of Flabio Gates
Flabio Gates

You need to be more specific. Where specifically are you trying to use your variable? Are you getting an Exception? Which Exception?
ASKER CERTIFIED SOLUTION
Avatar of SiHodgy007
SiHodgy007
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of SiHodgy007

ASKER

Not required