| | |
Calling multiple scripts
![]() |
Hi Team,
I have multiple shell scripts created(already prepared), but my Project Manager insisted me to run/call the script as one script..
eg:
Script1-"It finds whether file exist or not"
Script2-"It replace a word in a file"
Script3-"it searches the line and linenumber of a file"
i need to run jst one script(main) which will perform all the scripts to execute.. How is it done
Thanks for your patience!
Cheers!
Whizkidash
I have multiple shell scripts created(already prepared), but my Project Manager insisted me to run/call the script as one script..
eg:
Script1-"It finds whether file exist or not"
Script2-"It replace a word in a file"
Script3-"it searches the line and linenumber of a file"
i need to run jst one script(main) which will perform all the scripts to execute.. How is it done
Thanks for your patience!
Cheers!
Whizkidash
0
#4 18 Days Ago
Main script (main.sh):
f1.sh:
f2.sh:
f3.sh:
Results in:
Shell Scripting Syntax (Toggle Plain Text)
#!/bin/bash /tmp/daniweb/s/f1.sh /tmp/daniweb/s/f2.sh /tmp/daniweb/s/f3.sh
f1.sh:
Shell Scripting Syntax (Toggle Plain Text)
#!/bin/bash echo "Script 1"
f2.sh:
Shell Scripting Syntax (Toggle Plain Text)
#!/bin/bash echo "Script 2"
f3.sh:
Shell Scripting Syntax (Toggle Plain Text)
#!/bin/bash echo "Script 3"
Results in:
text Syntax (Toggle Plain Text)
sk@svn:/tmp/daniweb/s$ ./main.sh Script 1 Script 2 Script 3
![]() |
Similar Threads
- Running multiple scripts at once (JavaScript / DHTML / AJAX)
- Multiple scripts running simultaneosly (Python)
- Calling TCL scripts from C# (C#)
Other Threads in the Shell Scripting Forum
- Previous Thread: korn script issue
- Next Thread: line selection in a file and replace word
| Thread Tools | Search this Thread |






