www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/04/08:37:08

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:to:message-id:subject
:mime-version:content-type:content-transfer-encoding:references;
q=dns; s=default; b=vLVV61OTAnb4nm1R7A5OIGP/McFWYBICtyjI8SjdX2p
lADNXH/pG7LlQUqrWEWl9oVkx94AGIpIYbZkqA2wuRHK09E1P4p3wtJWQHyFPiOx
gIX3P/vlchJL5E02iX6G8xhHf1LVeWxp+E4FMHIEfXHpkFBoKO9UVO6ADrdDDMVY
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:to:message-id:subject
:mime-version:content-type:content-transfer-encoding:references;
s=default; bh=KzOzxL7BbO642TJ45I0PFFooEmA=; b=rd6Osx5qb3UYsyn6y
xuhrdPGbcbHOQNbbkwoLw15kUD1P/4IiJnmyVJ2YrsI0ijMiF0ObKns1MM4vMNnG
CMV+sCKRziPgftWPOs9YyyLZPGqG3fimvestkR76OdnJGXTrYTl/Yszo1FuUN8EC
sIpV1xcJJTGuKdKhRDXTRLLkVY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:sk:jws1001, oracle, Oracle, H*RU:98.138.100.114
X-HELO: nm7-vm3.bullet.mail.ne1.yahoo.com
Date: Thu, 4 Aug 2016 12:36:48 +0000 (UTC)
From: Scott Geiger <scott_geiger AT yahoo DOT com>
Reply-To: Scott Geiger <scott_geiger AT yahoo DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Message-ID: <1278249779.9195574.1470314208273.JavaMail.yahoo@mail.yahoo.com>
Subject: PS and AWK Linux Commands on Cygwin
MIME-Version: 1.0
References: <1278249779 DOT 9195574 DOT 1470314208273 DOT JavaMail DOT yahoo DOT ref AT mail DOT yahoo DOT com>
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019