Page 1 of 1

shell script --------------------------------------------------------------------------------------------- #!/bin/bash l

Posted: Sat May 14, 2022 3:31 pm
by answerhappygod
shell script
---------------------------------------------------------------------------------------------
#!/bin/bash
low_num=$1
hi_num=$2
step_num=$3
echo "Trial Numbers : " $low_num $hi_num $step_num
outfile="Test_num"$low_num"-"$hi_num".csv"
echo "Initial Number,Final Number" > $outfile
for p in `seq $low_pop $step_pop $hi_pop`;
do
echo "Trial: " $p
# Add code here to call test.py with correct arguments
and redirect the result to outfile
done
---------------------------------------------------------------------------------------------
When you open Test.py, you need to enter a number (in
the script shell it will run low_Num to high_Num by
steps) and then press Y to run it.
Can you give code for '# Add code here to call
test.py with correct arguments and redirect the result to
outfile'