为了快速测试,便携式 Linux 还是便携式编程语言?

发布于 2024-09-15 08:51:08 字数 672 浏览 10 评论 0原文

我当前的角色要求我设置模仿客户的环境并执行各种检查来复制并分析问题。

我经常发现,如果没有方便的基于 Linux 的 shell 和一些命令行编程语言(如 Perl),在 Windows 环境(如 XP、Server 2003、Server 2008)中工作会有点痛苦。

当然,我可以将所有内容安装到新系统上,然后开始工作,但这有点耗时且无聊。

所以我想知道哪种方法可以更好地解决这个问题?

我肯定可以使用 Qemu 创建一个便携式 Linux 映像,它不需要任何主机系统干扰,甚至不需要重新启动即可使用它。这样做的缺点是我必须找到一种在托管 Windows 和嵌入式 Linux 之间传输文件的方法。好处是我可以使用 Linux 武器库中的所有武器。

或者我可以开始寻找合适的可移植编程语​​言,例如 Movable Python、Perl 的某些变体,甚至 Lua 作为嵌入式语言。优点:熟悉语言;缺点:必须使用脚本来完成所有操作。

我的日常活动包括但不限于:

检查文本日志和/或 xml。

从日志中提取重要部分以进行进一步分析。

一些自动化流程,如应用程序服务器配置等...

自动化功能测试 - 和结果比较

一些系统管理员的工作,网络诊断,检查流程和服务等...

有什么好的想法吗?预先非常感谢!

My current role requires me to setup environment which mimics the customer's and perform various checks to replicate and then analyze the problem.

Chances are, I often find working with Windows environments such like XP, Server 2003, Server 2008 is a bit painful without having the handly linux-based shell and some command-line progamming languages such as Perl.

Of course I can just install everything onto the new system and then start working, but it is a bit time-consuming and boring.

So I am wondering which is a better way of working around this?

I can for sure use Qemu to create a portable linux image which doesn't require any host system interference, even without the need of rebooting so to use it. The weakness of this is I have to figure out a way to transfer the files between hosting Windows and embedded Linux. The good part is that I can use all the weapons in Linux's arsenal.

Or I can start looking for a proper portable progamming language such like Movable Python, some variant of Perl or even Lua as a embedded language. Pros: familiar with the language; Cons: have to use scripts to do everything.

My day-to-day activities envolves but not limit to :

Checking the text logs and/or xml.

Grepping important sections from logs for further analysis.

some automate process like application server configuration etc...

automated functional testing - and result comparison

some system admin's job, networking diagnostics, checking process and services, etc...

Any good ideas? Thanks a lot in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小清晰的声音 2024-09-22 08:51:08

虽然我是一个顽固的 Linux 粉丝,但在您的情况下,我建议您查看 Cygwin,最好是 USB 驱动器或类似的驱动器。它可以存在于单个目录中,从一个简单的脚本开始,最终获得(几乎)所有 Unix 的优点,但仍然能够访问所有主机平台资源。

有与 / 和 \ 相关的常见问题,更糟糕的是不区分大小写但保留大小写的文件名,其中有很多空格,但这在任何其他命令行上同样令人讨厌。

还有 Mingw,但我发现它的范围更有限。它在几个选定的目标区域中运行得非常好,但对于 GP 范围内的类 UNIX 环境则效果较差。

我的所有 Windows 机器(以及我必须使用/修复/维护的机器)上都有一个 cygwin 文件夹很长时间了。

While I am a die-hard Linux fan I would recommend in your case to look at Cygwin, preferably on a USB drive or similar. It can live in a single directory, be started with a simple script and end up with (almost) all the Unix goodness, but still being able to access all of the host platform resources.

There are the usual warts related to / vs \ and even worse the case insensitive but case preserving filenames with lot's of spaces in them, but that's equally obnoxious on any other command line.

There is also Mingw but it's scope is more limited I found. It works exceedingly well in a couple of selected target areas, but less so for a GP wide unix-like environment.

I have had a cygwin folder on all my windows machines (and the ones I had to use/repair/maintain) for a very long time now.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文