Thanks Carl!

That's still valid on current versions of mged too, and one of  
several scripting techniques demonstrated in the SGI Cube example on  
the wiki:

http://brlcad.org/wiki/SGI_Cube

mged's simple scriptability is a strength, one that can be put to use  
in a lot of powerful ways including scripting from arbitrary  
languages.  Some of the ways you can feed mged commands:

  1) pipe commands
        echo "tops" | mged -c test.g
  2) redirect input from a script
        mged -c test.g < myscript
  3) use a here document
        cat <<EOF | mged -c test.g
        tops
        e all.g
        EOF
  4) issue one command
        mged -c test.g make sph.s sph
  5) issue multiple commands
        mged -c test.g "make sph.s sph ; e sph.s ; rt"
  6) read scripts via 'source' command
        mged -c test.g source myscript

Cheers!
Sean


On Jul 9, 2009, at 11:01 AM, Moore, Carl (Civ,ARL/SLAD) wrote:

> Classification: UNCLASSIFIED
> Caveats: NONE
>
> At least when using previous versions of mged, I was able to edit a  
> unix
> file and then use it as "<" input to mged.  (I often used "mged -c"  
> to avoid
> the window setup so I could remain at or near old versions of mged.)
>
>
> Classification: UNCLASSIFIED
> Caveats: NONE


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
BRL-CAD Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-users

Reply via email to