Hello @bhawna,
You can encapsulate all the logic for each script in a function, make a new file which imports all the 3 functions, and then run that script.
So if the scripts are
edureka1.py
def f1():
...
edureka2.py
def f2():
...
edureka3.py
def f3():
...
Then the final script()test.py which you will run is :
#!/usr/bin/python
import sys
from edureka1 import f1
from edureka2 import f2
from edureka3 import f3
print 'Number of arguments:', len(sys.argv), 'arguments.'
print 'Argument List:', str(sys.argv)
from edureka1 import f1
from edureka2 import f2
from edureka3 import f3
f1(str(sys.argv[1]),....)
f2(str(sys.argv[1]),....)
f3(str(sys.argv[1]),....)
Now run above script as follows −
$ python test.py arg1 arg2 arg3...............
Hope it helps!!
Thank You!!