I have the following code ,line "call("ectool --server=commander.company.com login username",shell=True)" prompts for a password,how do I pass the password to the shell?
from subprocess import call
def main():
list = ['741679','741477']
call("export COMMANDER_SERVER=commander.company.com" ,shell=True)
call("ectool --server=commander.company.com login username",shell=True)
#need to pass password
if __name__ == '__main__':
main()