Python_2_Examples_and_Notes/15_system_processes_os_exec...

7 lines
106 B
Python
Executable File

#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
os.execvp("ping", ["ping", "127.0.0.1", "-c", "4"])