PDA

View Full Version : Any way to compile C remotely?



Alimygxea
09-07-2015,
I found many ways to work remotely in Komodo, using scp publishing and macros to send commands, I think is possible to compile c using commands remotely, sadly I can not figure it how to do it yet.
Actually I am uploading my C files using komodo SCP server tool (a remote project file, not using publishing tool).
These are the commands I need to run on the remote server to compile and run the program (it's a linux server):
gcc my_program.c -o my_program
./my_programThere is any way to send these commands and get the answer on the Komodo Console?
Thank you in advance!

aliskakep
09-09-2015,
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.

aljivxerwd
09-10-2015,
Thank you mitchell, I can not figure it yet, to run a remote command I need to give komodo an user, password and address to connect, Where can I write these parameters?

alkoDost
09-12-2015,
I use a command to restart a remote web server; you can probably adapt it to do what you want:
http://forum.komodoide.com/uploads/default/original/2X/c/c51aa8eda030db135dcd0ffeca7d4520f8c8e192.png
You'll probably want to use the "parse output with" and/or "open output pane" to see whatever it does.
(For reference, the 'web bounce' command I use is a shell script that does the magic work; you'd probably want a similar script on the remote end.)