Skip to content
/ shell Public

python function to call shell command which wraps subprocess

Notifications You must be signed in to change notification settings

tak0kada/shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

Python functions to call shell command which wraps subprocess.

Usage

from pathlib import Path
import shell

shell.exec("echo 'Hello World!'")
shell.exec("sleep 10", timeout_s = 1, log = Path("./log.txt"))

val = shell.valueof("pwd")
print(val)

About

python function to call shell command which wraps subprocess

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages