如果我使用「ps -efW」,它列出了Windows進程但不包含命令行參數。如何使用任何cygwin實用程序在窗口中查看具有參數的進程
我遇到了3個鏈接,告訴他們使用「pstree」,「/ proc/PID/cmdline」,「procps」。
http://cygwin.com/ml/cygwin/2007-04/msg00813.html
http://cygwin.com/ml/cygwin/2007-04/msg00817.html
http://cygwin.com/ml/cygwin/2007-04/msg00821.html
,但我不發現除了在cygwin的32位包procps的。
即使安裝procps後,我不知道如何使用。閱讀手冊頁。但沒有得到任何線索。
有人可以幫忙嗎?
例如,
使用wmic命令我可以看到具有參數的完整進程。
C:\Users\test1>wmic process get ProcessID, Commandline /format:csv |grep cmd
OSWIN7VC10-32B1,"C:\Windows\system32\cmd.exe" ,2904
OSWIN7VC10-32B1,C:\Windows\system32\cmd.exe /c c:\ostore74\src\osci\scripts\buil
d_test\nt\batch_conf\winnt_vc100_weekly.bat >C:\Users\test1\AppData\Local\Tem
p\s1io.4 2>C:\Users\test1\AppData\Local\Temp\s1io.5,3968
OSWIN7VC10-32B1,C:\Windows\system32\cmd.exe /c C:\apache-ant-1.7.1\bin\ant.bat -
Djboss.home=C:\ostore74\tmp\javaee\jboss-4.2.3.GA -emacs -k -f C:\ostore74\src\j
mtl\build.xml overnight >> \\ostorenas\odi\ostore_platform_logs\ostore\7.4
.0\test1\winnt_vc100\2013-10-18-1720\unit_retail_jmtl.log 2>&1,1864
OSWIN7VC10-32B1,"C:\Windows\system32\cmd.exe" ,604
OSWIN7VC10-32B1,grep cmd,2064
但使用cygwin ps命令。
這是什麼「__getexeccmd」功能?這不是一個bash函數。有人應該如何使用它? –
不管你希望如何使用它......你可以將它加載到你的bash配置文件中,也許是一個友好的名字....你可以很容易地將它轉換成bash腳本,把它放在「usr/bin」或別名中。 – jonretting