You can easily install Perl within the virtual machine and have it request jobs from the outside, for example via http. Or you can run an ssh server in the virtual machine and then run commands inside the virtual machine by using one of the SSH clients that can be automated by Perl.
| [reply] [d/l] [select] |
good ideas. I think that's what I'll do.
| [reply] |
Don't forget the non-Perl option: go back to your supervisor and tell them very briefly why it's difficult (but not impossible) and see if they still want you to do it!
They may rather allocate you something else to do if the benefit is only modest, and the cost is greater than they first thought. Or they may not. Either way, you should get brownie points for raising this in all but the most disfunctional of organisations.
--
use JAPH;
print JAPH::asString();
| [reply] |
I wrote an article about doing something similar with Perl and VMWare (which has a Perl API) to build a test farm for the Krang project. Check it out here, might give you some ideas:
http://www.ddj.com/web-development/184416172
Another option to consider is Wine - you could potentially run your Windows program in an emulated environment. I've seen that work successfully to run a Windows-only geo-coder under Linux.
-sam
| [reply] |
I had thought about WINE, but WINE doesn't seem to support it, which doesn't surprise me. Thanks for the suggestions, I'll check out that link.
| [reply] |
Does the linux program compile in cygwin?
| [reply] |
I have had good results using the Expect module to control a program via a Telnet connection.
It's not entirely intuitive. The book Exploring Expect (O'Reilly, 1994), which is about the TCL program that inspired the Perl module, helped me.
cat >~/.sig </dev/interesting
| [reply] [d/l] |
Wow, I loved that book. I started out as a TCL programmer and that book totally rocked my world. That and Mastering Regular Expressions.
-sam
| [reply] |