Results 1 to 2 of 2
hi,
i have 10 files which needs to be run one after the other.the run command for each file is something like this
hspice -i <i/p1> -o <o/p1>
hspice -i ...
- 01-30-2009 #1Just Joined!
- Join Date
- Jan 2009
- Posts
- 12
run the files in order
hi,
i have 10 files which needs to be run one after the other.the run command for each file is something like this
hspice -i <i/p1> -o <o/p1>
hspice -i <i/p2> -o <o/p2>
hspice -i <i/p3> -o <o/p3>
hspice -i <i/p4> -o <o/p4>
i cannot run all at a time
i need to put these commands in a file and they need to be run in order once each file is completed.can anyone help me out how this could be done?
- 02-01-2009 #2
I hope I am understanding your question correctly. If I was doing several things but wanted one line(or file) with the bash code to do it this is how it would go.
1.) I want to run the command "make" then I want to run "make modules_install" ONLY once the first command (make) was done:
$ make && make moduels_install
2.) I want to run a program then immediately run another
$ konqueror & exit
So I think what you want to do is add the double && to the end of each line in your code.
Try that and if it isn't what you were looking for let me know.Code:#!/bin/bash hspice -i <i/p1> -o <o/p1> && hspice -i <i/p2> -o <o/p2> && hspice -i <i/p3> -o <o/p3> && hspice -i <i/p4> -o <o/p4> && .... rest of file
Linux since: 2001
Gentoo since: 2004
- - - - - - - -
Translation:
I fix things until they break.


Reply With Quote