I have a Fortran Executable file named chuck
in the folder /home/debajyoti/chuckDir/
.
The program chuck
do is like, it takes an input file inputfile.txt
and an output file outputfile.txt
and calculates on the data from inputfile.txt
and writes the output in the file outputfile.txt
.
I to do all these calculations with the following steps in Ubuntu Terminal:
~$ cd chuckDir
~/chuckDir$ ./chuck <inputfile.txt> outputfile.txt
NOW I want to run chuck
and do all these within a Python Script
. The purpose of the Python3 Script
is, it takes the data from the outputfile.txt
to Plot. Now my question is how can I run chuck within the Python3 Script
itself?