Release Remotecmd 1.0

Remotecmd是一款用于远程登录服务器并执行编译任务的小工具。它支持SSH协议,并可通过Windows XP上的Eclipse进行集成,实现本地编辑、远程编译。此工具适用于嵌入式开发等场景。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Remotecmd 1.0 readme

Download

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

clip_image002

l Config your account

clip_image004

l Save to file

clip_image006

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

clip_image008

Setup eclipse project

l Create an empty c++ makefile project in eclipse

clip_image010

l Create a makfile

clip_image012

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.

clip_image014

l Make clean

Eclipse menu -> Project -> Clean…

clip_image016

l Make all

Eclipse menu -> Project -> Build Project

clip_image018

l Make result

You can double click on “Problems list” and eclipse will find the right line in source codes. I like this J.

clip_image020

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

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值