How to find Open Files by a Process Solaris 10
Hi,
Hope you are doing well.
I'm trying to get open files by a process in solaris 10 using "pfiles" with below command:
pfiles -n `ps | grep -i "data -log" | grep -v grep | grep -i uatrate | awk '{print $2}'` | wc –l
When I put this in some shell script like below then this command is not giving any output. Your assistance is required in this. Please guide me so that I can get the Count of Open files by some process.
I made some script, Its working fine but its giving the output for whole processes:
#!/bin/ksh
let "TOTAL_OPENED=0"
for A_PID in `ps | grep -i "data -log" | grep -v grep | grep -i uatrate | awk '{print $1}'`; do
FILES_OPENED=`/usr/proc/bin/pfiles -n $A_PID 2>/dev/null| grep "ino:" | wc -l`
let "TOTAL_OPENED = TOTAL_OPENED + $FILES_OPENED"
done
echo "Opened files = $TOTAL_OPENED"
Many Thanks in advance.
Imran Qasim.
Have you tried "man top" to see the documentation for the top command?
How about the following: http://lmgtfy.com/?q=show+memory+with+top+command
The 5th column (VIRT) shows the amount of RAM + swap
The 6th column (RES) shows RAM
The 7th column (SHR) shows memory shared between processes
Similar Messages
-
How to find log files in Sun soalries....
How to find log files in the SUN Solaries Os if there is any.....
i am new to SUN Solaries Admin Can some one refer me a good book for me on sun solaries
ThankqA reasonable method would be
cat /etc/syslog.conf
.. at least it would show you where syslog send its logs.
.7/M. -
How do I open files from an external drive? It's plugged into the second slot to the end. Did I plug it into the right place and how do I find the drive when trying to attach a file in an email?
Files on an external hard drive open just like files on the internal drive - but I get the idea that you are having a problem just finding and seeing those files. Is that correct?
What operating system is running on your MacBook? -
How can I open file; such as create other programme(Dream weaver...etc)?
One of my friend will make website for me soon...(She is not Mac user...I think she will use dream weaver or other tools)
So...I want take that file open in iweb09' is it possible?Imagine iWeb as a database which upon your command creates html files. It's a one-way process. You can generate more html files later but iWeb cannot open them. It only works with the "database" (the domain file).
-
How can i open file from adobe reader..i already have adobe read
how can i open file from adobe reader..i already have adobe reader installed and cannot open a
file and i cannot convert my file into pdf..Is the file really a PDF? Where is it? Have you tried opening it from within Reader?
-
How to find open sales orders.
Hi Gurus,
Can you please help me out How to find open Sales orders in SAP.
Is there any transaction code available or we can get it through via tables.
Your afforts are highly appriciated .
SRavani.Dear SRAVANI,
You can find open sales orders from the Transaction code "VA05N", You just run this report, Below the screen you can find open sales orders radio button , you select this and give execution parameters and execute(F8).
You will get the all open orders.
Hope it fixes your issue.
Please check it and revert.
Thanks&Regards
Raghu.k -
How To Find Opening Stock And Value For a Material
Hi Experts,
How To Find Opening Stock And Value For a Material in Given Dates
Moderator Message: Search.
Edited by: kishan P on Sep 15, 2010 4:05 PMThanks For Answering.....
But I Need Any Function Module To Get Opening Stock And Value For Given Material With in Dates. -
How do I open files in InDesign CS5.5 CS5?
How do I open files in InDesign CS5.5 CS5?
Hi, are you trying to open up a CS5.5 document in CS5? If so you need to export the docment while in InDesign CS5.5 to the IDML format.
Please refer to this document: http://help.adobe.com/en_US/indesign/cs/using/WSa285fff53dea4f8617383751001ea8cb3f-6d52a.h tml#WSa285fff53dea4f8617383751001ea8cb3f-6d4da -
How can I OPEN files I just downloaded? They're on the DOWNLOADS screen of Firefox but I can't open them even after double-clicking? And they're not on the FOLDERS as well. Even the right-click is not working ... the "open containing folder" does not work.
== This happened ==
Not sure how often
== ALWAYS! ==
== User Agent ==
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)Open Containing Folders is never active.
-
How to find open item in bsik table
anyone can tell me how to find open items for vendor in bsik table or it will store only open item.
i debug the tcode fbl1n to see . but not able to find
KumarHi
There is no specific field name for open item in the table BSIK.Yes BSIK include a structure named ABSIK_PSO and which is a "IS-PS: Data appendix of open items vendors".
Yes there is a field name
BUZEI - Line Item
EBELP - Item
You check with your requirement again and try to use these fields,if you still facing some probs than write back to me,i will try to give the appropriate solutions.
Thanks
Mrutyunjaya Tripathy -
How to find the File name using the FTP Adapter
hi all,
how to find the File name using the FTP Adapter with BPEL.
RegardsFound the solution for this.
First In the mediator's routing rule use assign property $in.property.jca.file.FileName to $out.property.jca.file.FileName
In the BPEL's receive activity go to the properties tab and get the property to a BPEL variable. That should do it.
Thanks for the posts -
Question about how javac finds referenced files.
Hi
I am just beginning to learn Java and have got some questions related to packages.
I have two classes:
MyClass.java
package pkg;
public class MyClass {
public void prn(int x){
System.out.println("Integer: "+x);
Test.java
import pkg.*;
public class Test{
public static void main(String[] args){
MyClass obj=new MyClass();
obj.prn(2);
Directory structure
/root/ jprog/MyClass.java
/root/ jprog/Test.java
Executing the following sequence of commands gives me:
# ls
MyClass.java Test.java
# javac -d . MyClass.java
# ls
MyClass.java Test.java pkg/
# cd pkg
# ls
MyClass.class -----compiles.
# cd ..
# javac Test.java
Test.java:5: cannot access MyClass
bad class file: ./MyClass.java
file does not contain class MyClass
Please remove or make sure it appears in the correct subdirectory of the classpath.
MyClass obj=new MyClass();
^
1 error
Now after reading another thread on this forum I came to know that the compiler finds the
MyClass.java in the wrong package. Using verbose option with javac shows this.
So I move it to some other directory and everything works.
# mv MyClass.java /root
# ls
Test.java pkg/
# javac Test.java
# java Test
Integer: 2
Now the question begins:
Suppose we go back to how the files were arranged before I moved the MyClass.java file and
I change the Test.java file by adding
package pkg2;
statement to it.
Now everything compiles
# ls
MyClass.java Test.java ---I have deleted pkg and .class files
# cat Test.java
package pkg2;
import pkg.*;
public class Test{
public static void main(String[] args){
MyClass obj=new MyClass();
obj.prn(2);
# cat MyClass.java
package pkg;
public class MyClass {
public void prn(int x){
System.out.println("Integer: "+x);
# javac -d . MyClass.java
# javac -d . Test.java
# ls
MyClass.java Test.java pkg/ pkg2/
# java pkg2.Test
Integer: 2
Why isn't the MyClass.java file causing any problems now?
Using the verbose option with javac shows that the compiler goes straight for the pkg/MyClass.class.
My readings of Core Java Horstmann tell me that the compiler always looks in the current directory. javac documentation also doesn't help. I know that the documentation recommends that the source file locations should match the package statements.
I'm just trying to learn how javac finds referenced files.
Any help??
Thanks a load in advance.I know that the
documentation recommends that the source file
locations should match the package statements.This is not merely a recommendation, it is a requirement.
Both javac and java find classes by traversing the classpath. The classpath should contain directories (or jar files) that correspond to the top of a (part of the) package hierarchy.
For example, if the Java code for your class is in a file C:\src\pkg\MyClass.java, and MyClass.java declares the class to be in package pkg, the classpath should contain C:\src. Classes are then found by transforming their package declaration into a directory structure.
Please note that javac works on files, not classes. Therefore it is necessary to specify the full filenames of the files you want to compile, even if you have specified the classpath. By default, javac will put compiled class files in the same location as their sources, so the classpath for the java command should also contain C:\src.
The exception to the rule is when all classes for the program are in the default package (i.e., they do NOT contain a package statement). In that case, it is possible for javac (and I believe java as well) to find all classes in the current directory, so it will "just work".
You can specify the classpath using the -cp parameter to both javac and java.
Hope this helps. -
How to find sql statement with Unix process pid
Hi
how to find sql statement with Unix process pid
is there any view to find that.
please if so let me know
Thanks in advancethis is how I am doing this:
oracle 7352340 7459066 0 07:47:10 - 0:00 oracleJDERED (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle 7459066 5386396 2 07:47:10 pts/1 0:01 sqlplus
select sid,serial# from v$session where process='7459066';
SID SERIAL#
2178 6067
select sql_text
from
v$sqlarea a,
v$session b
where a.hash_value = b.sql_hash_value
and b.sid = 2178
; -
How to find .pld files version in Oracle apps
Hi,
How to find .pld file version in Oracle apps using unix command or any other way.
RegardsConnect to the forms server.
In the $AU_TOP/resource directory run the following...
strings -a <NAMEOFFILE>.plx | grep '$Header'
For example...
To find the .pld version of INVAMCAP.plx I would run this on the forms server.
cd $AU_TOP/resource
strings -a INVAMCAP.plx | grep '$Header'
This will return the .pld version.
Hope this helps!
Jen -
CS6, how do I open files in Bridge directly into Photoshop. The default is File Viewer or there is an option to open in Adobe RAW.
Look at the down pointing arrow to the right of Photoshop CC in the list. Clicking on it shows a list of programs to select from.
Windows OS level or "in Windows" as opposed to "in Bridge".
Gene
Maybe you are looking for
-
Customisd err message at MIRO - Business area V/s company code validation
Hi experts, We have simple validation for company code V/S Business area check in place , While doing MIRO system throws error for a particular company code and Business area combination the set error message ( customized - Business are does not matc
-
My iframe is not working correctly in webmaker
The viewer will not properly display the iframe, but when I put it on a text editor and display it with firefox, it works fine.
-
Change Document Names in Map of Documents
Hello, I am taking the attachments from a completed task and putting them into a map of documents variable. I was wondering if it is possible to change the names of the documents in the map? I would like to be able to add an identifier to each docu
-
How to delete old unused blog tags from Wiki Server 3 in Lion Server
My Tags index in my Wiki Server 3 wiki (Lion Server) still shows old tags that are no longer in use. But, how in the world does one remove them? Any help? Thanks.
-
Not heard about iPhone unlock status since received initial email, please help?
I submitted the online form to get my iPhone 5 unlocked last week and got the email to say it had been received. However, I need to find out about the status of my submission as I am going abroad this week so would like to use new sim card in my phon