Porting mel "system" commands to NT

well we are finally doing it... goodbye irix... i have several questions for people who use NT : Can i do "system" stuff from within mel using DOS commands, or do i need some kind of runtime scripting environment setup? i have tried porting some of my mel scripts that do ascii file i/o... how do i generate an ascii text file with a given name from the DOS command line? i tried using "edit" but had no luck. mabey i'm just not using it right? does anyone have any suggestions for NT text editors that will show me line numbers? how can i set up my NT mouse to highlight/copy/MMB/paste between all open aplications including the DOS prompt? i appreciate any help on this and pray for a maya port to linux soon

thanks,

therrell

therrell
FATHOM STUDIOS
Atlanta

UltraEdit (www.ultraedit.com) or TextEdit (I forget where I saw this one) are both pretty good text editors. I don't like it as much as I liked BBedit on the Mac, but a decent replacement. I don't think you can do "system stuff" from Maya with MEL. You will miss the middle button click copy though. you'll have to settle for right click hold copy, right click hold paste, or ctrl-V and ctrl-C. Within the DOS "shell" it uses enter and I forget what for paste. A real pain in the ass if you're used to the Irix shell shortcuts. There are "UNIX"esque shells for use in NT, I havem't tried any, I believe there's one or two in the download area somewhere here. In my experience, I've gotten used to NT/DOS, but there is no way I think I'll ever like it the same way I like IRIX. For some strange reason, i feel like my IQ drops when i use NT...hehehe

Good luck here in BillGates land. You will be assimilated....haha

i found that the command that will generate a blank ascii file is "type > filename" (thanks Quang Tran). i also found that more than one command cannot be done from a single "system" mel command. if you want to do several things from the DOS prompt from within mel, you have to have a seperate "system" command for every DOS command you want exicuted. you also must use absolute pathing where paths are seperated by "" double backslashes.

if i run a tshell imulator in DOS, can i use those tshell commands in the mel "system" command?

the only other way to get more than one DOS thing done per mel "system" command is to create a dos .bat file and execute that from the "system" command

DOS woes abound

when i get all my scripts ported, i will post a guide as to what i did and what to watch out for

thanks

therrell
FATHOM STUDIOS
Atlanta

therrell
FATHOM STUDIOS
Atlanta

I think you can

Hey, Therrel:

Well, I haven't been playing with MEL too much yet, but I've used Cygnus' CygWin (B20.1 version) as a unix-centric interface with a huge toolbase from GNU's extensive library (including C compiler, LaTeX, etc). The commands can be called from a standard NT console as well as its Bourne shell if you set your path and environment variables up. If MEL can execute arbitrary commands from NT's command path, one should be able to just add Cygnus to the path and use them.

They also sell a CD (version 1.0) that includes XEmacs and some other unix-based tools, but you can get the sources and compile them yourself or binary kits if you're so inclined. Not neccessarily for the weak-hearted, but worth every penny (okay, costs nothing for the B20.1 version) to get some unix tools running.

Myself, I use GNU Emacs with CygWin and am quite pleased (although GNU Emacs can be used without Cygwin if you just want a powerful and free editor).

Links:
- http://sourceware.cygnus.com/cygwinhttp://sourceware.cygnus.com/cygwin for the latest freeware version (Beta 20.1) and news on patches, updates, etc. Also has a link to the version 1.0 you can purchase. NOTE The freeware version will continue to be worked on, the CD is for easier installation and also gives you a tech-support lead.

If you want, I could try testing a script that uses unix commands from MEL (e.g.: grep, diff, etc.), but I'll need a sample script to test.


Kelly O'Hara
Artist
Relic Entertainment Inc.


Kelly O'Hara
Artist
Relic Entertainment Inc.