This is the mail archive of the
cygwin
mailing list for the Cygwin project.
PS and AWK Linux Commands on Cygwin
- From: Scott Geiger <scott_geiger at yahoo dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Thu, 4 Aug 2016 12:36:48 +0000 (UTC)
- Subject: PS and AWK Linux Commands on Cygwin
- Authentication-results: sourceware.org; auth=none
- References: <1278249779.9195574.1470314208273.JavaMail.yahoo.ref@mail.yahoo.com>
- Reply-to: Scott Geiger <scott_geiger at yahoo dot com>
Hello,
We just started using Cygwin to assist us with running various scripts and commands in an Oracle E-Business Suite environment on a Windows 2008 R2 server. We have a script that we run that does the following:
ps -ef | grep mwa | grep -v grep | awk '{print $2}' | xargs kill -9
On Cygwin, however, I receive an error that says:
"'awk' is not recognized as an internal or external command,
operable program or batch file."
The other command that I often run to check if there are any processes running for our MWA server is this:
ps -ef | grep mwa
When I run this command using Cygwin, it returns nothing.
When I run this command using MKSTookkit, I see something like this: Which is a list of processes running that contain the letters "mwa"
oaprod 13696 9592 0 22:35:25 con 0:00 C:\Windows\system32\cmd.exe /K h:\oracle\prod\inst\app
s\OAPPSP_wpaora\admin\scripts\mwactl.cmd -mwatop h:\oracle\prod\inst\apps\OAPPSP_wpaora start 10200
oaprod 6716 9592 0 22:35:25 con 0:00 C:\Windows\system32\cmd.exe /K h:\oracle\prod\inst\app
s\OAPPSP_wpaora\admin\scripts\mwactl.cmd -mwatop h:\oracle\prod\inst\apps\OAPPSP_wpaora start 10202
oaprod 5916 9592 0 22:35:25 con 0:00 C:\Windows\system32\cmd.exe /K h:\oracle\prod\inst\app
s\OAPPSP_wpaora\admin\scripts\mwactl.cmd -mwatop h:\oracle\prod\inst\apps\OAPPSP_wpaora start 10204
oaprod 14192 6716 0 22:35:25 con 0:10 h:\oracle\prod\apps\tech_st\10.1.3\appsutil\jdk\bin\jav
a.exe -Doracle.apps.mwa=h:\oracle\prod\inst\apps\OAPPSP_wpaora -Doracle.apps.inst=h:\oracle\prod\in
st\apps\OAPPSP_wpaora -Doracle.apps.jrad.mmd=h:\oracle\prod\apps\apps_st\comn\webapps\oacore\html\jr
ad -mx1024m -ms256m -cp "h:\oracle\prod\apps\tech_st\10.1.3\appsutil\jdk\lib\dt.jar;h:\oracle\prod\
apps\tech_st\10.1.3\appsutil\jdk\lib\tools.jar;h:\oracle\prod\apps\tech_st\10.1.3\appsutil\jdk\jre\l
ib\rt.jar;h:\oracle\prod\apps\apps_st\comn\java\lib\apps
oaprod 10788 9592 0 22:35:26 con 0:00 h:\oracle\prod\apps\apps_st\appl\mwa\12.0.0\bin\MWADIS.
exe
I am not the person who installed Cygwin on our Windows server, so I cannot determine if it was installed correctly.
Can you please tell me if the above commands should work with Cygwin or perhaps a better suggestion to obtain similar information using a different command in Cygwin?
Thank you,
SG
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple