Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python run unix command

import shlex

tokens = ["echo", "-n", "Python is awesome"]
shlex.join(tokens)
# "echo -n 'Python is awesome'"
Source by antonz.org #
 
PREVIOUS NEXT
Tagged: #python #run #unix #command
ADD COMMENT
Topic
Name
4+1 =