简体   繁体   English

是否有适用于Windows的KornShell(ksh)IDE?

[英]Is there a KornShell (ksh) IDE for Windows?

My job is to write KornShell (ksh) script and run the script in a remote server. 我的工作是编写KornShell(ksh)脚本并在远程服务器中运行脚本。 I am trying to find the best way to do it. 我正在努力寻找最佳方法。

Currently, I edit the code in Notepad++, transfer the file to server (through FTP), run the script in server, and repeat the process until the script runs fine. 目前,我在Notepad ++中编辑代码,将文件传输到服务器(通过FTP),在服务器中运行脚本,然后重复该过程直到脚本运行正常。

So, what I'm looking for is an IDE (for windows) with a good editor, ftp support and debugging facilities. 所以,我正在寻找的是一个IDE(用于Windows),具有良好的编辑器,ftp支持和调试功能。

what you need is just an editor with syntax highlighting feature. 你需要的只是一个具有语法高亮功能的编辑器。 Personally, I prefer the combination of winscp and notepad2. 就个人而言,我更喜欢winscp和notepad2的组合。 Configure your winscp to use notepad2 as editor. 配置winscp以使用notepad2作为编辑器。 Then, locate the remote script file in winscp, right click and select Edit. 然后,在winscp中找到远程脚本文件,右键单击并选择“编辑”。 You can now start coding and for every moment you press CTRL+S (save) in your notepad2, winscp will detect and transfer to the server. 您现在可以开始编码,并且在您的记事本2中按CTRL + S(保存)的每一刻,winscp将检测并传输到服务器。

The Zeus editor can do seamless FTP/SFTP editing. Zeus编辑器可以进行无缝的FTP / SFTP编辑。

As to debugging it might also be possible to run the remote script using something like plink . 至于调试,也可以使用像plink这样的东西来运行远程脚本。

Both Vim and Emacs will edit files on a remote machine somewhat transparently and both have ports to Windows that work well. Vim和Emacs都会在某种程度上透明地编辑远程计算机上的文件,并且两者都有适合Windows的端口。

This link will tell you how to do it with Vim. 链接将告诉您如何使用Vim执行此操作。

I recommend opening a terminal connection to the remote machine (ssh or X windows) and edit/test/debug the script there. 我建议打开与远程机器(ssh或X窗口)的终端连接,并在那里编辑/测试/调试脚本。 Unless you can get an X connection going, you'll have to use a text-mode editor like vi or emacs (steep learning curves but very powerful), or something simple like pico/nano. 除非你可以进行X连接,否则你将不得不使用文本模式编辑器,如vi或emacs(陡峭的学习曲线,但功能非常强大),或者像pico / nano这样简单的东西。 You can copy the file back to your Windows machine when you are all done. 完成后,您可以将文件复制回Windows计算机。 This approach isn't too bad. 这种方法并不算太糟糕。 I do it all the time. 我一直这样做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM