简体   繁体   中英

Is subprocess cross platform?

I am writing a Network Monitoring application using PySide and Qt. I want to make it cross platform. I am using tcpdump and nmap for a lot of the monitoring portion. There is a nmap python module, but there is no tcpdump python module(that I know of), which means I would have to use subprocess to run tcpdump. So my question is, if I use subprocess, will it work on all platforms (windows, linux, mac) or is it specific to a certain platform?

The subprocess module is cross-platform. It works on POSIX (incl. Mac OS X) and Windows platforms.

There are some caveats and differences that apply only to Windows, all documented in the module documentation .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM