Skip to content

halleytl/shell_cmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

平台:linux python :2.6+

linux下的命令行支持回答模式

Will execute a command, read the output and return it back.

param cmd: command to execute

param timeout: process timeout in seconds

param show: Display output to the front

param stdin_file: Enter the interactive information content of the file

return: a tuple of three: first stdout, then stderr, then exit code

raise OSError: on missing command or if a timeout was reached

example:

python shellCmd.py

About

format :linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages