多服务器管理员的可移植脚本语言? [英] Portable scripting language for a multi-server admin?

查看:134
本文介绍了多服务器管理员的可移植脚本语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请注意::与Portableapps.com中的可移植性不同,它不是可在多种体系结构或操作系统上使用的传统语言.谁创造了可移植"这个词的用法,谁都应该被殴打. :)

Please Note: Portable as in portableapps.com, not in the traditional sense of a language that can be used on multiple architectures or operating systems. Whoever coined this usage of the word portable should be whacked. :)

我是一名DBA和sysadmin,主要用于运行SQL Server的Windows计算机.我正在寻找一种不需要Windows管理员访问权限或安装程序的Windows编程/脚本语言,除了将其扩展到文件夹外,不需要任何安装过程.我的目的是要有一种可以标准化的自动化语言.

I'm a DBA and sysadmin, mostly for Windows machines running SQL Server. I'm looking for a programming/scripting language for Windows that doesn't require Admin access or an installer, needing no install process other than expanding it into a folder. My intent is to have a language for automation around which I can standardize.

到目前为止,我一直使用批处理文件和Unix shell的组合,使用 UnxUtils ,但这远非完美的解决方案.

Up to this point, I've been using a combination of batch files and Unix shell, using sh.exe from UnxUtils but it's far from a perfect solution.

我已经评估了一些选择,所有这些选择至少都有一个严重的缺点或另一个缺点.我对开放源代码或双重许可证非常感兴趣,但是我比其他任何人都对找到合适的工具更感兴趣.对任何依赖Cygwin或Java的东西都不感兴趣,但是在这一点上,我会满意需要.NET的东西.

I've evaluated a handful of options, all of them have at least one serious shortcoming or another. I have a strong preference for something open source or dual license, but I'm more interested in finding the right tool than anything else. Not interested that anything that relies on Cygwin or Java, but at this point I'd be fine with something that needs .NET.

要求:

  • 可管理的占用空间(1-100个文件,已安装30 MB以下)
  • 在Windows XP和Server(2003+)上运行
  • 没有安装程序(exe,msi)
  • 不依赖JVM或Cygwin安装
  • 使用外部管道,进程和文件
  • 支持MS SQL Server或ODBC连接

奖励积分:

  • 开源
  • 用于在本机DLL中调用函数的FFI
  • GUI支持(本机或gtk,wx,fltk等)
  • Linux,AIX和/或OS X支持
  • 动态的,面向对象的和/或功能的,解释的或字节码编译的;互动发展
  • 能够将脚本打包或编译为可执行文件

到目前为止,我已经尝试过:

  • Ruby:磁盘上148 MB,23000个文件
  • 便携式Python:磁盘上54 MB,2800个文件
  • Strawberry Perl:磁盘上123 MB,3600个文件
  • REBOL:很好,除了封闭源,免费版本中没有MSSQL或ODBC
  • Squeak Smalltalk:很好,但对脚本的支持不佳

推荐答案

Tclkit 是单个文件,独立的Tcl/Tk系统.我拥有的Mac版本约为3.8兆.您可以获得适用于几乎所有现代OS的版本.我随身携带了具有Mac,Windows和Linux二进制文件的拇指驱动器,因此我可以在任何平台上运行脚本.无需安装,只需复制一个文件即可.

Tclkit is a single-file, self-contained Tcl/Tk system. The mac version I have is about 3.8 megs. You can get a version for just about any modern OS. I carry around a thumb drive that has mac, windows and linux binaries so I can run my scripts on any platform. No install is required, just copy one file wherever you want.

原始规范中唯一缺少的是开箱即​​用的MS SQL Server/ODBC支持.我知道人们为此使用tcl,但我认为您必须添加一个额外的库或其他东西.有关更多信息,请参见 MS SQL Server上的Tcl'ers Wiki条目.

The only thing it's missing from your original spec is MS SQL Server / ODBC support out of the box. I know people use tcl for that but I think you'll have to add an extra library or something. See the Tcl'ers wiki entry on MS SQL Server for more information.

这篇关于多服务器管理员的可移植脚本语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆