我想用log_file命令捕获expect脚本的进度。在expect shell中发出以下命令之后,所有内容都会在日志文件中捕获。expect1.1> log_file my.log Local time: St 2017-04-19 17:07:10/usr/bin/expect -fexec timedatectl status
如何从Ex
我有一个名为mypython.py的python脚本,它导入了一个记录器模块。从一个名为myexpect.exp的expect脚本中调用mypython.py。我的问题是,当我在mypython.py中添加一个测试(‘logger.info’)语句,并从myexpect.exp调用它时,myexpect.exp就会失败。OK
logger.info("This is from logger statement" + " " + args.test_arg) ### This has issue