Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

remote development

<< < (2/2)

mandrav:

--- Quote from: adorlith on October 20, 2005, 01:19:49 pm ---I know, I just asked to see if there's anybody else that needs this feature. The programming would be more challenging  :D this way.

--- End quote ---

Sure enough, many people would like to see this functionality implemented (I know I would).
Btw, you know about BVRDE, right?

thomas:

--- Quote from: adorlith on October 20, 2005, 01:14:43 pm ---what if you have only ftp or sftp access to that machine ?
--- End quote ---
Well, you sure do have ssh on that machine, or how do you access it at all  ;)
Mirror the local directory to the remote machine using pscp (comes with putty). The tool is called scp on Unix and is available everywhere (part of every normal ssh package).

Or use psftp or the standard ftp client that comes with every OS - to you it does not make a difference at all. Have the user configure which executable to use (plus username/password). Then you just need to write a minimal wrapper that folds a few commandline options (most are likely identical anyway), and that's all.
Finally, you can even write your own minimalist FTP client if you think that is necessary... not too hard.

adorlith:

--- Quote from: mandrav on October 20, 2005, 01:23:38 pm ---
--- Quote from: adorlith on October 20, 2005, 01:19:49 pm ---I know, I just asked to see if there's anybody else that needs this feature. The programming would be more challenging  :D this way.

--- End quote ---

Sure enough, many people would like to see this functionality implemented (I know I would).
Btw, you know about BVRDE, right?

--- End quote ---

I know, but I didn't like the class browser, for instance. If the job is simple, I use directly vi, but if it's so complex that I need an IDE for sure I do need an class browser.

adorlith:

--- Quote from: thomas on October 20, 2005, 01:48:07 pm ---
--- Quote from: adorlith on October 20, 2005, 01:14:43 pm ---what if you have only ftp or sftp access to that machine ?
--- End quote ---
Well, you sure do have ssh on that machine, or how do you access it at all  ;)
Mirror the local directory to the remote machine using pscp (comes with putty). The tool is called scp on Unix and is available everywhere (part of every normal ssh package).

Or use psftp or the standard ftp client that comes with every OS - to you it does not make a difference at all. Have the user configure which executable to use (plus username/password). Then you just need to write a minimal wrapper that folds a few commandline options (most are likely identical anyway), and that's all.
Finally, you can even write your own minimalist FTP client if you think that is necessary... not too hard.

--- End quote ---

I're saying that I can use the standard ftp and wrap the command into a plugin ?
There's no hook when the CB open a file so I don't have any posibility to replace the standard open file dialog with my own ftp enabled open file dialog(in case someone want to add an source file located on another machine.

thomas:
 :shock: Hooks are the devil's tool.

Your files live in a plain normal project folder which is on your hard drive (and you choose "remote compile" in target settings). When you compile the project, the remote-compile-plugin scps the source files onto the target machine, then opens a plink session and executes the build commands that it would normally execute locally via the ssl tunnel (of course you have to replace minw32-gcc with gcc, but that is about everything).
A more advanced version would check the file modification times, so it does not need to blindly copy 200 files every time, but the basic idea would still work just fine.

Navigation

[0] Message Index

[*] Previous page

Go to full version