Remotecmd 1.0 readme
Using Eclipse + beyond compare + remotecmd in windows XP for Embedded developement
What is remotecmd
Remotecmd means remote excute command. You can use it to remote login server and excute one command list on it using SSH/RLOGIN/TELNET. The most important purpose is that I can use it remote compile our codes.
It is free to use for any purpose. But I am not responsible for any result caused by this small tool.
Why I develop remotecmd
I need compile our software in linux server in our daily work. Generaly I remote login the linux server using putty by SSH protocol and set compile env and compile on server.I can use vim to edit source codes in server or use eclipse by VNC connect to linux server desktop. But linux server becomes very slow when there are many engineers using VNC connect at same time.I think why not use local eclipse to edit and remote compile? So one idea is in my mind ^_^
l install eclipse and cdt in local windows xp
l use samba to mount remote file to the local file system
l use remotecmd to compile remotly
So I spend two weekend days finishing this first version.I think you will like it.
Is there such open source tool
As I know, there are those type tools, for example the bvrde and uniwin. Bvrde is one IDE and you can use it to edit/compile/debug remotly, but cannot integrate with eclipse. Uniwin is another tool to wrap the gnu make/gcc/gdb, but it’s not easy to use.
How to use remotecmd in eclipse
I use compiling open source minigui in QNX as example.
Setup remote login account
l Launch RemoteCmdCfg.exe
l Config your account
l Save to file
Setup remote command list
Create two text file and write content as this:
l Remote cmd list :
1: script_all.txt
2:
3: cd /root/work/minigui
4:
5: make
l Remote cmd list :
1: script_clean.txt
2:
3: cd /root/work/minigui
4:
5: make clean
l Test your config:
Run windows cmd.exe first and cd to the direct of your copy of remotecmd. Run as this:
cd D:/personal/vike/svn/open_remote_sh/bin/win32
remotecmd.exe remotecmd.xml script_all.txt
Setup eclipse project
l Create an empty c++ makefile project in eclipse
l Create a makfile
l Write makefile
1: remotemake_path=D:/personal/vike/svn/open_remote_sh/bin/win32
2:
3: rmake=$(remotemake_path)/remotecmd.exe
4:
5: rconfig=$(remotemake_path)/remotecmd.xml
6:
7: rscript_clean=$(remotemake_path)/script_clean.txt
8:
9: rscript_all=$(remotemake_path)/script_all.txt
10:
11: all:
12:
13: $(rmake) $(rconfig) $(rscript_all)
14:
15: clean:
16:
17: $(rmake) $(rconfig) $(rscript_clean)
18:
19:
l Create source folder
I have mounted remote samba server direct to local file system(T:/), So I just need to create an folder linker.
l Make clean
Eclipse menu -> Project -> Clean…
l Make all
Eclipse menu -> Project -> Build Project
l Make result
You can double click on “Problems list” and eclipse will find the right line in source codes. I like this J.
Intergrate with Other IDE
In theory remotecmd can be integrated with any IDE if the IDE support customize compiler or customize command. I have tested some IDE like codeblocks/ Source insight/Microsoft Visual Studio/SlickEdit.
TODO LIST
This first version just supports SSH protocol and win32 platform(I just test it on windows XP. Welcome to test it on VISTA or WIN7 and tell me the result). Perhaps I will do such improves but I cannot ensure to finish this todo list. Thanks for your understanding.
l Add telnet protocol
l Add rlogin protocol
l Add sftp mount to local file system
l Support Linux
l Support QNX
How to contact with me
Email: delores.liu@gmail.com or www.rt-ics.com