I have a basic script called script.sh
which will take 3 parameters, each a python file. I need to run these programs within script.sh
. I have
#! usr/bin/env python3
for my first line, and I've tried running each of the programs with python ${1}
as well as python3 ${1}
. I'm new to scripting; is it possible to run these programs within my script?
script.sh
meant to be a shell script or a python script?script.sh
is a shell script. Also, when I removed the python/python3 and just had${1}
it gives me a syntax error for that line.#!/bin/sh
or#!/bin/bash
. The shell will then execute your python commands.