2008年01月05日 星期六 01:49
ÎÒÏëµ÷Óà wget À´ÏÂÔØÎļþ£¬µ«¿ÉÄܲ¢²»ÊÇÿһ̨»úÆ÷¶¼ÓУ¬ÓÐʲô·½·¨¿ÉÒÔÖªµÀÕą̂»úÆ÷ÊÇ·ñ¿ÉÒÔÔËÐÐ wget ? -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20080105/11490291/attachment.html
2008年01月05日 星期六 08:17
On Jan 5, 2008 1:49 AM, Kevin anew <kevinanew在gmail.com> wrote: > 我想调用 wget 来下载文件,但可能并不是每一台机器都有,有什么方法可以知道这台机器是否可以运行 wget ? > 可以执行查看版本的命令来预先执行一下,看能不能得到预期的输出结果。 -- I like python! UliPad <>: http://code.google.com/p/ulipad/ meide < >: http://code.google.com/p/meide/ My Blog: http://www.donews.net/limodou
2008年01月05日 星期六 09:51
bash脚本: wget if [ $? -eq 127 ] then echo 'Error: no command' fi
2008年01月05日 星期六 11:45
bash 下用 which 来确定是否有这命令 which wget || echo 没有 wget wgich wget && echo 有 wget On Jan 5, 2008 9:51 AM, jessinio liang <jessinio at gmail.com> wrote: > bash脚本:
2008年01月05日 星期六 12:42
ÔÚWindows xp ÖÐÓиöRun as µÄ¹¦ÄÜ£¨Ê¹ÓÃÆäËûÓû§ÃûºÍÃÜÂëÀ´ÔËÐгÌÐò£©£¬ÈçºÎʹÓÃpythonÀ´×ö£¿ _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20080105/2af5d9e0/attachment.html
2008年01月05日 星期六 12:49
system() On Jan 5, 2008 12:42 PM, python python <python at tairan.net> wrote: > > 在Windows xp 中有个Run as 的功能(使用其他用户名和密码来运行程序),如何使用python来做? > > ________________________________ > Express yourself instantly with MSN Messenger! MSN Messenger > _______________________________________________ > 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 > -- 关注LAMP平台、安全、及web开发的个人blog: http://hackgou.itbbq.com PGP KeyID: hackgou#Gmail.com PGP KeyServ: subkeys.pgp.net
2008年01月05日 星期六 12:50
Pywin32里有个createprocessasuser On 1/5/08, python python <python在tairan.net> wrote: > 在Windows xp 中有个Run as 的功能(使用其他用户名和密码来运行程序),如何使用python来做? > > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today it's FREE! > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -- Sent from Gmail for mobile | mobile.google.com
2008年01月08日 星期二 18:32
if 0 == os.system('wget --version >/dev/null 2>&1'): ok else: not ok On 4, limodou <limodou at gmail.com> wrote: > On Jan 5, 2008 1:49 AM, Kevin anew <kevinanew at gmail.com> wrote: > > 我想调用 wget 来下载文件,但可能并不是每一台机器都有,有什么方法可以知道这台机器是否可以运行 wget ? > > > 可以执行查看版本的命令来预先执行一下,看能不能得到预期的输出结果。 > > -- > I like python! > UliPad <>: http://code.google.com/p/ulipad/ > meide <>: http://code.google.com/p/meide/ > My Blog: http://www.donews.net/limodou > _______________________________________________ > 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
2008年01月08日 星期二 18:40
Õâ¸ö·½·¨ÓÖ»áÆô¶¯Ò»Ï½ø³Ì£¬ÀË·ÑÖеÄÀË·Ñ£¬Python ÓÖ²»ÊÇ Shell¡£ ÔÚ08-1-8£¬wu jiyong <jiyong.wu在gmail.com> дµÀ£º > > if 0 == os.system('wget --version >/dev/null 2>&1'): > ok > else: > not ok > > On 4, limodou <limodou在gmail.com> wrote: > > On Jan 5, 2008 1:49 AM, Kevin anew <kevinanew在gmail.com> wrote: > > > ÎÒÏëµ÷Óà wget À´ÏÂÔØÎļþ£¬µ«¿ÉÄܲ¢²»ÊÇÿһ̨»úÆ÷¶¼ÓУ¬ÓÐʲô·½·¨¿ÉÒÔÖªµÀÕą̂»úÆ÷ÊÇ·ñ¿ÉÒÔÔËÐÐ wget ? > > > > > ¿ÉÒÔÖ´Ðв鿴°æ±¾µÄÃüÁîÀ´Ô¤ÏÈÖ´ÐÐһϣ¬¿´Äܲ»Äܵõ½Ô¤ÆÚµÄÊä³ö½á¹û¡£ > > > > -- > > I like python! > > UliPad <>: http://code.google.com/p/ulipad/ > > meide <>: http://code.google.com/p/meide/ > > My Blog: http://www.donews.net/limodou > > _______________________________________________ > > python-chinese > > Post: send python-chinese在lists.python.cn > > Subscribe: send subscribe to python-chinese-request在lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese -- Ray Stinger, nickname Lich_Ray God is in his heaven, all's right with the world. ------------------------------------------------- let focus = 'computing' in where: http://lichray.javaeye.com let focus = 'computing' in here: http://lichray.bokeland.com -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20080108/9ee63d21/attachment.html
Zeuux © 2024
京ICP备05028076号