Anyone know how to run a unix script on Ubuntu via Repetier-Host after a

Anyone know how to run a unix script on Ubuntu via Repetier-Host after a print job is complete? I have a little script I wrote in perl that tweets my furnace power usage. I’d like to hijack that and be notified when a large running print job is complete.

would require writing a Perl parser, semantic checker, and Python code generator.Not practical. Perl parsers are hard enough for the Perl teams to get right. You’d be better off translating Perl to Python from the Perl AST (opcodes) using the Perl Opcode or related modules.http://perldoc.perl.org/Opcode.htmlSome notations do not map from Perl to Python without some work. Perl’s closures are different, for example. So is its regex support.In short, either convert it by hand, or use some integration modules to call Python from Perl or vice-versa.

Sorry - I already have a ‘tweet’ command written in perl that I can reuse for other purposes. When the print job finishes, I want Repetier-Host to run: “tweet ‘d ehud42 print is done’”.

So you are asking if there is any support in Repetier for running arbitrary commands at print completion?

I don’t know the answer off hand, but I’m interested in hearing if anyone knows a solution.

@Tom_Nardi Exactly. Apparently there is support in Repetier-Server (http://www.repetier-server.com/manuals/0.50/index.html) - but the first step:

"Instead you have to write a extcommands.xml file which you drop in your databbase subdirectory inside your storage directory (see installation where this is for your os)."

has me confused because there is no database folder in Repetier-Host.