I need to embed unix commands in python script and need a piece of code to perform the below: echo $i |awk -F ' ' '{print $9' '$6' '$7' '$8}'
            Asked
            
        
        
            Active
            
        
            Viewed 49 times
        
    -3
            
            
        - 
                    http://unix.stackexchange.com/questions/238180/execute-shell-commands-in-python – dabadaba Mar 06 '17 at 13:15
1 Answers
0
            
            
        in python you can run shell commands like this:
from subprocess import call
call(["ls", "-l"])
 
    
    
        János Farkas
        
- 453
- 5
- 14
