首页 > 解决方案 > 有没有办法将 Powershell、Python 脚本转换为 Bash 脚本?

问题描述

我为 Windows 操作系统开发了多个 PowerShell 脚本

检查内存利用率更改服务状态检索用户信息。

我想为 Linux 和 Mac OS 开发相同的脚本,有什么办法可以使用现有的 powershell 脚本。

标签: pythonbashpowershell

解决方案


您可能会发现此链接很有帮助:

https://www.phillipsj.net/posts/using-powershell-scripts-from-bash

它为您提供了有关如何安装 powershell 的指南,然后提供了一些有关如何在 bash 中运行 powershell 脚本的示例。


推荐阅读