ps


PS command column display full detail


Whilst signed on a server as "sa_brett", if I open a CMD window as an administrator (right click and run as administrator) and then type:
C:> ps -ef |grep ORACLE.EXE
I get the following:
SYSTEM 8828 644 0 07:05:06 con 57:38 d:\oracle\11.2.0.3\bin\ORACLE.EXE LIVE
SYSTEM 8288 644 0 07:05:38 con 0:13 d:\oracle\11.2.0.3\bin\ORACLE.EXE TEST
sa_brett 11736 10532 0 09:42:57 con 0:00 grep ORACLE.EXE
However, if I open a CMD window (not as administrator and type) the same command as above I only get my "grep" command returned
C:>ps -ef |grep ORACLE.EXE
sa_brett 12852 11364 0 10:24:16 con 0:00 grep ORACLE.EXE
If I change the search to lower case "oracle" then I now get results, but I don't get the full command for oracle i.e. ORACLE.EXE LIVE or ORACLE.EXE TEST (which is what I need)
C:\Windows>ps -ef |grep oracle
0 8828 1 0 07:05:06 con 1h25 oracle
0 8288 1 0 07:05:38 con 0:16 oracle
sa_brett 12300 11364 0 10:24:21 con 0:00 grep oracle
I want to write a script which detects the "LIVE" or "TEST" but because the PS command isn't returning the full detail it's not working.
Any advise greatly appreciated
thanks
Create your script, make a shortcut to the script, right-click shortcut > Properties > Advanced > Run As Administrator, then click OK. Call your script via the shortcut for it. It will run as Administrator, and you'll get the PS output you need for your script every time.
Hope this helps!

Related Links

Base64 encoding in Powershell
Local processes of head node of a PBS cluster
Execlp says No such file or directory
PS command column display full detail
Set Title in postscript header, produced by IDL
Android/iOS app product description photos
Check whether process running linux and start with certain description
List pid of process that is under 24 hrs old
how to identify page boundries in a .prn file of multiple page job

Categories

HOME
oauth-2.0
autohotkey
redux
marie
gsm
qemu
cluster-analysis
arguments
crash
sugarcrm
kendo-asp.net-mvc
ndepend
guidewire
jetbrains
repeater
opendaylight
k-means
samba
openam
ofbiz
aiml
keystone
matlab-gui
ckeditor4.x
datanucleus
workflow-foundation
drombler-fx
launchd
uibarbuttonitem
xlib
visual-studio-debugging
wercker
tunnel
ponylang
android-databinding
multi-user
redhat-brms
mixed-models
qt-quick
python-venv
result
yank
rivets.js
g77
dcom
cloudconvert
riemann
enet
dynamic-linking
sqlproj
consolidation
queuing
weblogic-maven-plugin
nsoperationqueue
archiva
dcast
controlpanel
adempiere
om
bootstrap-tabs
azure-mobile-app
eggplant
glog
attiny
crtdbg.h
uiblureffect
tigase
banana-pi
winrun4j
mongoid4
flask-mongoengine
.net-reflector
db2-connect
mdp
infomaker
objectdatasource
listpicker
cloudmade
qt5.1
screensharing
invalidoperationexception
esi
states
sup
github-archive
nsundomanager
code-organization
symfony-1.2
functional-specifications
lwp
fxcopcmd
arraycollection
web-widget
lts
file-storage

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile