推荐学习书目
› 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 · Jan 7, 2013 · 2907 views
    This topic created in 5009 days ago, the information mentioned may be changed or developed.
    代码在这里: 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脚本了。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1133 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 17:42 · PVG 01:42 · LAX 10:42 · JFK 13:42
    ♥ Do have faith in what you're doing.