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'
shell script --------------------------------------------------------------------------------------------- #!/bin/bash l
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
shell script --------------------------------------------------------------------------------------------- #!/bin/bash l
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!