- Jan
- 34
- 2
Hi all;
I've written a number of BTM files at work that are great timesavers for me, but they aren't usable by other team members, and they'd like them. I realize that there's a TCC runtime, but that's not an option, unfortunately. Our environment is C, C++, perl, python, ruby, embedded ruby (I'm not sure how that differs from regular ruby), some bash (Cygwin's in there) and a smattering of PowerShell (which is unpopular).
Does anyone have experience porting .BTM scripts to any other those, or something similar? Any recommendations as to what would be the easiest to port? Which scripting language is closest to Take Command's, in terms of capabilities?
My "problem", so to speak, is that I've been using Take Command since the days of 4DOS in 1989, so I can bang out a quick script that does whatever I need pretty quickly, so I've never actually bothered to learn another scripting language in depth, so I can't do a competitive analysis.
I look at some of the crazy things I see in our environment, where .BAT files are wrappers for Perl scripts that write temp files which are processed by Ruby, and then the output of the Ruby is parsed by the Perl, and then that output goes into a Python script... it's craziness, especially when I can do the same processing in TCC in a single script, faster and more elegantly.
But, I've already lost this argument, and I've been asked to add the functionality to the environment without introducing another scripting language. I can sort of understand that, since we have too many scripting languages already.
A common pattern I have is to have a file with a list of files, and iterate through it using "for line in (@file)", and then process each file in turn. I've not seen anything that's as straightforward as TCC for that.
Any recommendations or comments are welcomed.
I've written a number of BTM files at work that are great timesavers for me, but they aren't usable by other team members, and they'd like them. I realize that there's a TCC runtime, but that's not an option, unfortunately. Our environment is C, C++, perl, python, ruby, embedded ruby (I'm not sure how that differs from regular ruby), some bash (Cygwin's in there) and a smattering of PowerShell (which is unpopular).
Does anyone have experience porting .BTM scripts to any other those, or something similar? Any recommendations as to what would be the easiest to port? Which scripting language is closest to Take Command's, in terms of capabilities?
My "problem", so to speak, is that I've been using Take Command since the days of 4DOS in 1989, so I can bang out a quick script that does whatever I need pretty quickly, so I've never actually bothered to learn another scripting language in depth, so I can't do a competitive analysis.
I look at some of the crazy things I see in our environment, where .BAT files are wrappers for Perl scripts that write temp files which are processed by Ruby, and then the output of the Ruby is parsed by the Perl, and then that output goes into a Python script... it's craziness, especially when I can do the same processing in TCC in a single script, faster and more elegantly.
But, I've already lost this argument, and I've been asked to add the functionality to the environment without introducing another scripting language. I can sort of understand that, since we have too many scripting languages already.
A common pattern I have is to have a file with a list of files, and iterate through it using "for line in (@file)", and then process each file in turn. I've not seen anything that's as straightforward as TCC for that.
Any recommendations or comments are welcomed.