On Aug 18, 2008, at 3:22 PM, shuqi chen wrote:
I test the Unix command-line,which does not work well. The Unix command-line is
as follows
for x in 'seq a dx b'; do meep x=$x  myfile.ctl; done
what is wrong with this command?

Well, your quotes are wrong. You want to substitute the result of running the "seq" command into the for loop, and to do that you need to use backquotes (`).

Also, note that the above command is for Bourne shells like bash (the standard shell in GNU/Linux), and won't work in the csh or tcsh shell.

In any case, this is basic shell programming and has nothing specifically to do with Meep; you can find lots and lots of tutorials on Unix shell programming online (and there are plenty of books you can buy.)

Hope steven can give us some comments about how to write a loop in the ctl file and
Unix command-line to uqdate the frequency.

See the section "how to write a loop in Scheme" in the manual:

http://ab-initio.mit.edu/wiki/index.php/Guile_and_Scheme_links

Steven
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to