Run多个文件
怎样让一个程序执行多个文件one after one?:roll: #program1;prgram2;program3; ....
use ";" to execute command on after another. C语言吗?
system("aaa;bbb;ccc...");
It is Linux----Thanks a lot
I'd like to run the same command to different files one after one,$ command1 file1 >& junk &
after the calculation finish(usually 5 hours or more), I hope my computer can run the second file automatically, that is:
$ command1 file2 >& junk &
and then
$ command1 file3 >& junk &
and so on. edit a text file ,the contents of the file are the commands you want to run:
command1 file1 >& junk &
command1 file2 >& junk &
command1 file3 >& junk &
save the file ,named it as "commander"
then change this file as a executable file:
$chmod u+x commander
the last step you should do is just run it:
$ ./commander
You are something!
That is wonderful!! Thank you so much. I will try it soon. 用脚本
页:
[1]