Running UNIX Commands from Python

Python code

“Sometimes, you need to combine several scripts and programming languages in order to complete a task. This can be because different systems are communicating with each other or that the resulting program is easier for the user. Analysis of large-scale scientific datasets in physics, chemistry and biology often involve the user of high-throughput data generation and supercomputers. These supercomputers often run some kind of UNIX operating systems, whereas the data analysis often involve the use of Python, Perl, C++ and R.

This kind of scientific analysis of empirical data often involve different programming languages, core UNIX programs and custom scripts. Very often, these all have to interact in larger analysis pipelines that are run automatically from start to finish. This tutorial will demonstrate how to run UNIX commands from inside a Python script.”

Running UNIX Commands from Python

Advertisements