I have one script which runs in Bash and and other which runs in tcsh.
I need to run them both from the same script. How can I create a script that can run both bash and tcsh commands?
Most shells have an argument which allow you to pass them a string to run as a command, for example, for bash you can run
bash -c "echo this is a bash script; echo lalalala"
to run that string as a script in bash, use this to run the needed shell embedded in the other. This will allow you to make a script in one shell which will invoke the other shell when the other program needs to be run.
If on the other hand they are both properly shebanged begin with #!tcsh or #!bash you can simply run both scripts from the same bash script using:
/path/to/script1 &
/path/to/script2 &
parsecmgmt -a run -p blackscholes & ; /home/linaro/--removedLongPath--/run.sh it should do what you want, note I have not written out the full path (takes me too long to copy the path out of the photo) but you will need to, basically you can run any script by typing the full path to run it from anywhere instead of having to be in the same folder. Is that what you need? If that is what you want I can edit it into the answer.
cshis very different frombash. You can consider portability withsh-derived shells instead, but not withtcsh. It's -very- difficult to keep compatibility with*cshan*sh.One of my programs only runs in Bash and the other only runs in tcsh"Please explain..."bash prog1 & csh prog2 &?