获取 GNU/Linux 上 MONO 执行的进程 [英] Get process executed by MONO on GNU/Linux

查看:36
本文介绍了获取 GNU/Linux 上 MONO 执行的进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 MONO 来执行应用程序.使用 ps 命令显示进程名 MONO 或 CLI.如何获取 MONO 执行的应用程序名称?

I am using MONO to execute an application. Using ps command shows eihter processname MONO or CLI. How can I get the name of the application executed by MONO ?

示例:单声道 myApp.exe

Example : mono myApp.exe

我想知道 myApp.exe 当前是否被执行.最后,我想以编程方式进行此检查.

I want to know, if myApp.exe is currently excecuted. Finally I want to do this check programmatically.

干杯.

推荐答案

你通常会从一个 shell 脚本运行你的程序,然后你可以使用 -a 标志来执行:

You usually will run your program from a shell script and there you can use the -a flag to exec:

#!/bin/bash
exec -a VisibleName mono program.exe

这篇关于获取 GNU/Linux 上 MONO 执行的进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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