I have a file named myadd.py
that contains only the following function:
def myadd(a,b):
return a+b
How can I run it on Linux terminal? I am looking for something easy like this:
python myadd 2,3
My final goal is to send multiple jobs to the server by making a .sh
file containing:
bsub -J job1 python myadd 2,3
bsub -J job1 python myadd 4,5
bsub -J job1 python myadd 6,3
.
.
.
.
Let me know if I need to make any changes to be able to do something like the line above.