Hi, you could try creating a new toolbox command (Tools > Run Command… and then check “Add to Toolbox”) that executes your compile command remotely on a server. I’m not exactly sure what the syntax would be, but I’m pretty sure ssh allows this. Any output should be printed in Komodo’s output window.
Komodo does not resolve the remote IP, it just runs ssh which is doing the magic. You can define ~/.ssh/config file with something like that:
And then access it by ssh hostname (in case you’re using a ssh key).
I’m not sure there’s a way to send a password using an argument for ssh command so the only way to do that is generate a ssh key and send it to the server so they key will be trusted.
the script run on the remote (the bits in single-quotes after the host) is just a plain ol’ shell script. I don’t want to put the actual script here (I guess it’s technically company proprietary ) but you can imagine it saying something like:
Usefull! I didn’t know you can declare functions globally, I got some logs in console using this:
var w = document.getElementById('console-widget').contentWindow;
w.document.getElementById('output').innerHTML = ''; // clear console (thanks to nathanr)
if(stderr.value!="") console.error(stderr.value); // prints errors if any
else console.log(stdout.value); // else prints output
Anything declared without var is automatically made global. Note, this is terrible practice and you should never do it in your code and that Userscript should be re-written to NOT do it but I have to get to work on 10.1 features otherwise I would fix it .