Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to print using .sh file from python

import subprocess
import shlex
subprocess.call(shlex.split('./test.sh param1 param2'))
Comment

how to print using .sh file from python

import subprocess
import shlex
subprocess.call(shlex.split('./test.sh param1 param2'))

#with test.sh in the same folder:

#!/bin/sh
echo $1
echo $2
exit 0
Comment

PREVIOUS NEXT
Code Example
Python :: fungsi untuk mengecek apakah ada data yang kosong 
Python :: 144/360 
Python :: howmanydays python 
Python :: print is not working in python 
Python :: loop through dataframe and assign values based on previous row 
Python :: subprocess open txt file python 
Python :: select randomly from list in loop 
Python :: install first person controller python 
Python :: list of thing same condition 
Python :: python 2.0 
Python :: is console and terminal is same in spyder python(3.9) 
Python :: yticks in plotly expres 
Python :: what is certifi module in python 
Python :: dict to csv keys as rows and subkey as columns in python 
Python :: find a string hackereank 
Python :: withdraw() opposite tjinter 
Python :: access matrix value opencv 
Python :: hpw to create related model in django rest framework logic 
Python :: python consecutive numbers difference between 
Python :: how to add watermark in mp4 video using python 
Python :: how to copy items in list n times in list python 
Python :: create a fibonacci function using a generator python 
Python :: find prime numbers in a given range for big input python 
Python :: get all methods of an instance 
Python :: pandas print nonzero in series 
Python :: how to make a series in python alternating between + and - 
Python :: Lazada link 
Python :: python dynamic csvnfile joining 
Python :: can we put the object as value in a dictionary in python* 
Python :: how to draw tony stark sketch in python 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =