System calls over network
Rene Pijlman
reply.in.the.newsgroup at my.address.is.invalid
Tue Jan 13 13:45:18 EST 2004
More information about the Python-list mailing list
Tue Jan 13 13:45:18 EST 2004
- Previous message (by thread): Py2Exe and Outlook (array bounds change!?)
- Next message (by thread): System calls over network
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Gabriel Leblanc:
>I am wondering if there's an easy way to do a system call to a file
>that resides on the network. Say for example I would like to call the
>batch file which is located at
>
>\\ComputerName\file.bat
>
>I tried :
>
>>>> import os
>>>> os.popen("\\ComputerName\file.bat")
System calls, batch files, UNC paths and pipes are different things. What
exactly are you trying to acomplish? And on what platform?
Also, you should use raw strings to prevent the double backslash from
being escaped to a single backslash:
r"\\ComputerName\file.bat"
--
René Pijlman
- Previous message (by thread): Py2Exe and Outlook (array bounds change!?)
- Next message (by thread): System calls over network
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list