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

查看:95
本文介绍了获取在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 ?

示例: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天全站免登陆