由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - python os.system( ) doesn't come back
相关主题
Help -- How to output error messages to a file for scripts called by system calls???Help with a simple c-shell script.
请教个javascript的问题 (转载)怎样运行一个 Python script?
要不要学习 scripting languages such as Python?你认为ubuntu下面写script,用perl还是python更好? (转载)
问一下学习python可以看什么代码python question
how to input password for build automation using python ?Python的script的兼容问题
啥脚本可以进行网页操作?Perl/Python/.NET难道是搞网页的?
用python生成傻shell脚本如何?花了一个小时学习了python
把python当成通用script来学,哪些module需要熟练?Scripting language的几个问题
相关话题的讨论汇总
话题: script话题: other话题: back话题: my话题: come
进入Programming版参与讨论
1 (共1页)
w*s
发帖数: 7227
1
This is what i suspect, python os.system( ) doesn't come back sometimes.
i have loop.py, it's very simple
for x in range(0, 10000):
rc = os.system("my_other_script.py")
time.sleep(10)
os.system("linux_cmd_to_turn_off_my_other_script")
Coming back from weekend, i don't see outputs from my_other_script.
When i manually run "linux_cmd_to_turn_off_my_other_script",
my_other_script seems alive again.
so i was thinking what happens if this line never come back ?
rc = os.system("my_other_script.py")
Big cows, any suggestions ?
k****0
发帖数: 7
1 (共1页)
进入Programming版参与讨论
相关主题
Scripting language的几个问题how to input password for build automation using python ?
python一问啥脚本可以进行网页操作?
how to call another python script用python生成傻shell脚本如何?
[合集] 有没有什么工具可以把perl script转成别的语言?把python当成通用script来学,哪些module需要熟练?
Help -- How to output error messages to a file for scripts called by system calls???Help with a simple c-shell script.
请教个javascript的问题 (转载)怎样运行一个 Python script?
要不要学习 scripting languages such as Python?你认为ubuntu下面写script,用perl还是python更好? (转载)
问一下学习python可以看什么代码python question
相关话题的讨论汇总
话题: script话题: other话题: back话题: my话题: come