Python论坛  - 讨论区

标题:[python-chinese] 请教关于调用外部程序的处理

2006年04月17日 星期一 11:26

jason python.nbfan python.nbfan at gmail.com
Mon Apr 17 11:26:38 HKT 2006

我的IDE有一个listBOX,里面有好几个运行外部程序的选项,我需要当一个外部程序结束后,就运行一个备份命令.
但是现在只有当整个IDE结束后,才运行这个备份命令.请问应该如何处理。
谢谢
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060417/ca05df0a/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年04月17日 星期一 16:07

FireBird ygonic at gmail.com
Mon Apr 17 16:07:20 HKT 2006

外部程序?exe文件?
你可以查看 os.spawnl()系列函数,应该可以满足你的要求

spawnl(mode, file, *args)
    spawnl(mode, file, *args) -> integer

    Execute file with arguments from args in a subprocess.
    If mode == P_NOWAIT return the pid of the process.
    If mode == P_WAIT return the process's exit code if it exits normally;
    otherwise return -SIG, where SIG is the signal that killed it.

在 06-4-17,jason python.nbfan<python.nbfan at gmail.com> 写道:
> 我的IDE有一个listBOX,里面有好几个运行外部程序的选项,我需要当一个外部程序结束后,就运行一个备份命令.
> 但是现在只有当整个IDE结束后,才运行这个备份命令.请问应该如何处理。
> 谢谢
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to
> python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to
> python-chinese-request at lists.python.cn
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>
>

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年04月19日 星期三 08:56

jason python.nbfan python.nbfan at gmail.com
Wed Apr 19 08:56:42 HKT 2006

我用py2exe把wxpython程序转成exe,在win98下不能运行,请问如何解决?

在06-4-17,FireBird <ygonic at gmail.com> 写道:
>
> 外部程序?exe文件?
> 你可以查看 os.spawnl()系列函数,应该可以满足你的要求
>
> spawnl(mode, file, *args)
>     spawnl(mode, file, *args) -> integer
>
>     Execute file with arguments from args in a subprocess.
>     If mode == P_NOWAIT return the pid of the process.
>     If mode == P_WAIT return the process's exit code if it exits normally;
>     otherwise return -SIG, where SIG is the signal that killed it.
>
> 在 06-4-17,jason python.nbfan<python.nbfan at gmail.com> 写道:
> > 我的IDE有一个listBOX,里面有好几个运行外部程序的选项,我需要当一个外部程序结束后,就运行一个备份命令.
> > 但是现在只有当整个IDE结束后,才运行这个备份命令.请问应该如何处理。
> > 谢谢
> >
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to
> > python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to
> > python-chinese-request at lists.python.cn
> > Detail Info:
> > http://python.cn/mailman/listinfo/python-chinese
> >
> >
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060419/6c55084b/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年04月19日 星期三 09:06

Pau Lau paulau591 at gmail.com
Wed Apr 19 09:06:43 HKT 2006

在06-4-19,jason python.nbfan <python.nbfan at gmail.com> 写道:
>
> 我用py2exe把wxpython程序转成exe,在win98下不能运行,请问如何解决?
>
> 在06-4-17,FireBird <ygonic at gmail.com> 写道:
>
> > 外部程序?exe文件?
> > 你可以查看 os.spawnl()系列函数,应该可以满足你的要求
> >
> > spawnl(mode, file, *args)
> >     spawnl(mode, file, *args) -> integer
> >
> >     Execute file with arguments from args in a subprocess.
> >     If mode == P_NOWAIT return the pid of the process.
> >     If mode == P_WAIT return the process's exit code if it exits
> > normally;
> >     otherwise return -SIG, where SIG is the signal that killed it.
> >
> > 在 06-4-17,jason python.nbfan< python.nbfan at gmail.com> 写道:
> > > 我的IDE有一个listBOX,里面有好几个运行外部程序的选项,我需要当一个外部程序结束后,就运行一个备份命令.
> > > 但是现在只有当整个IDE结束后,才运行这个备份命令.请问应该如何处理。
> > > 谢谢
> > >
> > >
> > > _______________________________________________
> > > python-chinese
> > > Post: send python-chinese at lists.python.cn
> > > Subscribe: send subscribe to
> > > python-chinese-request at lists.python.cn
> > > Unsubscribe: send unsubscribe to
> > > python-chinese-request at lists.python.cn
> > > Detail Info:
> > > http://python.cn/mailman/listinfo/python-chinese
> > >
> > >
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
> >
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese


安装一下vb6应该就可以了。
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060419/51ac39b9/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年04月19日 星期三 09:40

jason python.nbfan python.nbfan at gmail.com
Wed Apr 19 09:40:10 HKT 2006

你的意思是需要vb6的库?
不可能让用户为了我这个软件在安装一个vb6

在06-4-19,Pau Lau <paulau591 at gmail.com> 写道:
>
>
>
> 在06-4-19,jason python.nbfan <python.nbfan at gmail.com> 写道:
> >
> > 我用py2exe把wxpython程序转成exe,在win98下不能运行,请问如何解决?
>
> 在06-4-17,FireBird <ygonic at gmail.com> 写道:
>
> > 外部程序?exe文件?
> > 你可以查看 os.spawnl()系列函数,应该可以满足你的要求
> >
> > spawnl(mode, file, *args)
> >     spawnl(mode, file, *args) -> integer
> >
> >     Execute file with arguments from args in a subprocess.
> >     If mode == P_NOWAIT return the pid of the process.
> >     If mode == P_WAIT return the process's exit code if it exits
> > normally;
> >     otherwise return -SIG, where SIG is the signal that killed it.
> >
> > 在 06-4-17,jason python.nbfan< python.nbfan at gmail.com> 写道:
> > > 我的IDE有一个listBOX,里面有好几个运行外部程序的选项,我需要当一个外部程序结束后,就运行一个备份命令.
> > > 但是现在只有当整个IDE结束后,才运行这个备份命令.请问应该如何处理。
> > > 谢谢
> > >
> > >
> > > _______________________________________________
> > > python-chinese
> > > Post: send python-chinese at lists.python.cn
> > > Subscribe: send subscribe to
> > > python-chinese-request at lists.python.cn
> > > Unsubscribe: send unsubscribe to
> > > python-chinese-request at lists.python.cn
> > > Detail Info:
> > > http://python.cn/mailman/listinfo/python-chinese
> > >
> > >
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to
> > python-chinese-request at lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
> >
>
>
> _______________________________________________
>
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
> 安装一下vb6应该就可以了。
>
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060419/3dbd4095/attachment-0001.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年04月19日 星期三 09:54

Pau Lau paulau591 at gmail.com
Wed Apr 19 09:54:31 HKT 2006

在06-4-19,jason python.nbfan <python.nbfan at gmail.com> 写道:
>
> 你的意思是需要vb6的库?
> 不可能让用户为了我这个软件在安装一个vb6
>
> 在06-4-19,Pau Lau <paulau591 at gmail.com> 写道:
> >
> >
> >
> > 在06-4-19,jason python.nbfan <python.nbfan at gmail.com > 写道:
> > >
> > >  我用py2exe把wxpython程序转成exe,在win98下不能运行,请问如何解决?
> >
> > 在06-4-17,FireBird <ygonic at gmail.com> 写道:
> >
> > > 外部程序?exe文件?
> > > 你可以查看 os.spawnl()系列函数,应该可以满足你的要求
> > >
> > > spawnl(mode, file, *args)
> > >     spawnl(mode, file, *args) -> integer
> > >
> > >     Execute file with arguments from args in a subprocess.
> > >     If mode == P_NOWAIT return the pid of the process.
> > >     If mode == P_WAIT return the process's exit code if it exits
> > > normally;
> > >     otherwise return -SIG, where SIG is the signal that killed it.
> > >
> > > 在 06-4-17,jason python.nbfan< python.nbfan at gmail.com> 写道:
> > > > 我的IDE有一个listBOX,里面有好几个运行外部程序的选项,我需要当一个外部程序结束后,就运行一个备份命令.
> > > > 但是现在只有当整个IDE结束后,才运行这个备份命令.请问应该如何处理。
> > > > 谢谢
> > > >
> > > >
> > > > _______________________________________________
> > > > python-chinese
> > > > Post: send python-chinese at lists.python.cn
> > > > Subscribe: send subscribe to
> > > > python-chinese-request at lists.python.cn
> > > > Unsubscribe: send unsubscribe to
> > > > python-chinese-request at lists.python.cn
> > > > Detail Info:
> > > > http://python.cn/mailman/listinfo/python-chinese
> > > >
> > > >
> > >
> > > _______________________________________________
> > > python-chinese
> > > Post: send python-chinese at lists.python.cn
> > > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > > Unsubscribe: send unsubscribe to
> > > python-chinese-request at lists.python.cn
> > > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> > >
> > >
> >
> >
> > _______________________________________________
> >
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
> > 安装一下vb6应该就可以了。
> >
> >
> >
> > _______________________________________________
>
>
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to   python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese


那你就在win98下打一次试试
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060419/924c61a7/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年04月19日 星期三 11:39

BlackSands(LiYingMin)bug&patch fred.li.1979.m.bj.prc at gmail.com
Wed Apr 19 11:39:09 HKT 2006

py2exe的打包在win9x需要一个文件 w9xpopen.exe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060419/996b94b5/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年04月19日 星期三 11:41

BlackSands(LiYingMin)bug&patch fred.li.1979.m.bj.prc at gmail.com
Wed Apr 19 11:41:05 HKT 2006

这个文件不知道能不能和bootloader拼在一起?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060419/d7e2b3ed/attachment-0001.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年04月19日 星期三 12:04

Jerry redhairboy at tom.com
Wed Apr 19 12:04:24 HKT 2006

可以到网上找vb运行库的, 很多,不用装vb
  ----- Original Message ----- 
  From: jason python.nbfan 
  To: python-chinese at lists.python.cn 
  Sent: Wednesday, April 19, 2006 9:40 AM
  Subject: Re: [python-chinese] 请教关于调用外部程序的处理


  你的意思是需要vb6的库?
  不可能让用户为了我这个软件在安装一个vb6


  在06-4-19,Pau Lau <paulau591 at gmail.com> 写道:



    在06-4-19,jason python.nbfan <python.nbfan at gmail.com > 写道: 
    我用py2exe把wxpython程序转成exe,在win98下不能运行,请问如何解决?


    在06-4-17,FireBird <ygonic at gmail.com> 写道: 
      外部程序?exe文件?
      你可以查看 os.spawnl()系列函数,应该可以满足你的要求

      spawnl(mode, file, *args)
          spawnl(mode, file, *args) -> integer 

          Execute file with arguments from args in a subprocess.
          If mode == P_NOWAIT return the pid of the process. 
          If mode == P_WAIT return the process's exit code if it exits normally;
          otherwise return -SIG, where SIG is the signal that killed it. 

      在 06-4-17,jason python.nbfan< python.nbfan at gmail.com> 写道:
      > 我的IDE有一个listBOX,里面有好几个运行外部程序的选项,我需要当一个外部程序结束后,就运行一个备份命令. 
      > 但是现在只有当整个IDE结束后,才运行这个备份命令.请问应该如何处理。
      > 谢谢
      >
      >
      > _______________________________________________ 
      > python-chinese
      > Post: send python-chinese at lists.python.cn
      > Subscribe: send subscribe to
      > python-chinese-request at lists.python.cn 
      > Unsubscribe: send unsubscribe to
      > python-chinese-request at lists.python.cn 
      > Detail Info:
      > http://python.cn/mailman/listinfo/python-chinese
      > 
      >

      _______________________________________________
      python-chinese
      Post: send python-chinese at lists.python.cn 
      Subscribe: send subscribe to python-chinese-request at lists.python.cn
      Unsubscribe: send unsubscribe to   python-chinese-request at lists.python.cn
      Detail Info: http://python.cn/mailman/listinfo/python-chinese



     


    _______________________________________________

    python-chinese
    Post: send python-chinese at lists.python.cn
    Subscribe: send subscribe to python-chinese-request at lists.python.cn 
    Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
    Detail Info: http://python.cn/mailman/listinfo/python-chinese

    安装一下vb6应该就可以了。

     

    _______________________________________________
    python-chinese
    Post: send python-chinese at lists.python.cn 
    Subscribe: send subscribe to python-chinese-request at lists.python.cn
    Unsubscribe: send unsubscribe to   python-chinese-request at lists.python.cn
    Detail Info: http://python.cn/mailman/listinfo/python-chinese






------------------------------------------------------------------------------


  _______________________________________________
  python-chinese
  Post: send python-chinese at lists.python.cn
  Subscribe: send subscribe to python-chinese-request at lists.python.cn
  Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
  Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060419/93c8e298/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年04月21日 星期五 00:34

聪明的傻瓜 wmjie.cn at gmail.com
Fri Apr 21 00:34:58 HKT 2006

我现在在学python,想做网站试试,
请大家帮忙提供几个好的 服务提供商。


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年04月21日 星期五 11:08

HoLin holin.he at gmail.com
Fri Apr 21 11:08:43 HKT 2006

dreamhost貌似不错。
好多人在用
www.djangocn.org
这个也在上面。


在06-4-21,聪明的傻瓜 <wmjie.cn at gmail.com> 写道:
>
> 我现在在学python,想做网站试试,
> 请大家帮忙提供几个好的 服务提供商。
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060421/4a174e97/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号