Groups
Groups
Sign in
Groups
Groups
PyIndex(python用户讨论组)
Conversations
About
Send feedback
Help
怎样在linux实现py脚本的自动启动
6 views
Skip to first unread message
孟武帝
unread,
Apr 15, 2014, 9:53:53 PM
4/15/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pyindex
比如说,我有一个py脚本 我想要点击某个程序就启动它,而且开机自动启动,当
脚本内部执行出错时候重新启动 求解答!!!!
Simon Luo
unread,
Apr 16, 2014, 10:29:01 AM
4/16/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pyi...@googlegroups.com
把py文件丢到 /sbin 下面, 然后编辑一个 xinted 文件即可。
于 14-4-16 上午9:53, 孟武帝 写道:
> 比如说,我有一个py脚本 我想要点击某个程序就启动它,而且开机自动启动,当
> 脚本内部执行出错时候重新启动 求解答!!!!
>
--
ThStack Inc.
Simon Luo | CEO & Founder of ThStack Inc.
www.thstack.com
Mail:
simo...@thstack.com
|
xc...@thstack.com
小黑
unread,
Apr 17, 2014, 6:14:38 AM
4/17/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pyi...@googlegroups.com
Windows下就打成个包呗。然后添加到启动项。linux就更方便了,做成系统服务,开机启动就行了。想实现脚本一直是否运行就做一个轮循,多时间检查一下这个脚本的进程时候还在不。
来自 MEIZU MX
-------- 原始邮件 --------
发件人:孟武帝 <
wdme...@gmail.com
>
时间:周三 4月16日 09:54
收件人:pyindex <
pyi...@googlegroups.com
>
主题:[PyIndex][UG][2621] 怎样在linux实现py脚本的自动启动
比如说,我有一个py脚本 我想要点击某个程序就启动它,而且开机自动启动,当
脚本内部执行出错时候重新启动 求解答!!!!
--
PyIndex是Python的中文社区环境之一,用于结合社会力量构建一个自我维系的生态系统,
其中的信息是无缝衔接的,沟通是及时多面的,交流是自由专业的,为此不仅仅需要我们
Python自身的发展,还需要你的点滴的支持。
您收到此信息是由于您订阅了 Google 论坛“PyIndexUG(Python用户讨论组)”论坛。
要在此论坛中发帖,请发送电子邮件至
pyi...@googlegroups.com
要取消订阅此论坛,请发送电子邮件至
pyindex+u...@googlegroups.com
要查看更多选项,请访问:
https://groups.google.com/groups/opt_out?hl=zh-CN
其他相关访问:
Python社区之家项目:
http://www.pyindex.com
Python函数检索项目:
http://www.pydef.com
Reply all
Reply to author
Forward
0 new messages