[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

# Re: [femm] passing a lua script as a command-line argument

- To: femm@yahoogroups.com
- Subject: Re: [femm] passing a lua script as a command-line argument
- From: David Meeker <dmeeker@ieee.org>
- Date: Thu, 13 Mar 2003 23:47:54 -0500
- In-reply-to: <b4rm7c+glsh@eGroups.com>
- References: <b4rm7c+glsh@eGroups.com>
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b; MultiZilla v1.1.34 (d)) Gecko/20030210

mikeshonle wrote:

> `Hi, I would like to run a femme lua script via "winexec", so I'm
> wondering if there's some way to start femme.exe and have it load and
> execute a script without user intervention (e.g. "femme -run
> myscript.lua")
> Thanks in advance.
> -Mike
> `

Yes, you can do this--it just isn't very well documented, I guess. Anyhow, you can specify the Lua script that you want to run via the syntax:
femme.exe -lua-script=yourscript.lua -windowhide
The addition of -windowhide makes femme run basically like a command line application, which is probably preferable if you are just calling the program as an analysis engine from somewhere else.
Also, you might check out the Calling a FEMM analysis in a Mathematica or Matlab function example on the FEMM website. This same approach is used to call FEMM as part of a matlab or mathematica program.
Dave.

    --
    David Meeker
    dmeeker@ieee.org
    http://femm.berlios.de/dmeeker

- References:
  - passing a lua script as a command-line argument
    - From: "mikeshonle" <mike@psychonic.net>

- Prev by Date: passing a lua script as a command-line argument
- Next by Date: Re: [femm] non linear stainless steel meterial
- Previous by thread: passing a lua script as a command-line argument
- Next by thread: Electrostatics version
- Index(es):
  - Date
  - Thread