V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
y10n
V2EX  ›  Python

共享个小东东,同时请教让这个python脚本用 nohup python thisscript.py & 的方式运行时报错处理的方法

  •  
  •   y10n ·
    etng · 2013-01-07 15:12:26 +08:00 · 1716 次点击
    这是一个创建于 4098 天前的主题,其中的信息可能已经有所发展或是发生改变。
    代码在这里: https://gist.github.com/4473069

    报错信息如下:

    Traceback (most recent call last):
    File "gfw.py", line 74, in <module>
    child.interact()
    File "/usr/local/lib/python2.6/dist-packages/pexpect-2.4-py2.6.egg/pexpect.py", line 1494, in interact
    mode = tty.tcgetattr(self.STDIN_FILENO)
    termios.error: (25, 'Inappropriate ioctl for device')


    大概意思上我是明白的,什么io上下文不对,看这个文档又比较少,请教大家了。





    ps.大家看了代码不要笑,起码4年没写过python脚本了。
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   985 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 20:29 · PVG 04:29 · LAX 13:29 · JFK 16:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.