01-15-2010
Need to display complete format of ps
Hi All,
For one of my script I need to get the complete format of PS as result.
Actually in our application, we have to execute some program to get the data for batch files.
Now there is some java script is running on unix for this which is not identifiable.
I want to know how to get the complete format of PS.
As I am trying to do
PS aux|grep <filename>
But its not giving any result, so I tried
PS -ef|grep <filename>
Even it is also not generating any result.
Please tell me the command to get the complete format of result for PS command.So that when I enter the file name, it should be coming in result.
Thanks,
Nishank Jain
---------- Post updated at 06:12 AM ---------- Previous update was at 06:02 AM ----------
I would like add one more thing to this.
Most important is that even though the complete format is coming,please tell me the way to get the complete value in the columns.
Thanks,
Nishank Jain
Last edited by Yogesh Sawant; 01-15-2010 at 08:12 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi is there any way i can display a countdown time needed to run a script? like load a counter at the beginning of the script with the estimated time and display the counter decrementing till it finishes running the script? (3 Replies)
Discussion started by: npatwardhan
3 Replies
2. Shell Programming and Scripting
Hi I have 3 files
$ ls -l
-rw-r--r-- 1 osbadmin osbadmin 427701 Apr 22 12:06 SANITY_TEST
-rw-r--r-- 1 osbadmin osbadmin 427701 Apr 22 12:06 Success 123333
-rw-r--r-- 1 osbadmin osbadmin 427701 Apr 22 12:06 Success 123333 (1)
I need to see this
"SANITY_TEST" "Success 123333" "Success... (6 Replies)
Discussion started by: mnmonu
6 Replies
3. UNIX for Advanced & Expert Users
The time stamp format using "ls -l" is either mmm dd hh:mm or mmm dd yyyy.
For later case, how can I know the hh:mm as well. Thanks. (3 Replies)
Discussion started by: pok.fung
3 Replies
4. UNIX for Dummies Questions & Answers
Hello People,
How can I display the date in a continuous format along with the time as below :
20091001_154547
i.e yyyymmdd_hhmmss format.
Thanks. (3 Replies)
Discussion started by: sushant172
3 Replies
5. UNIX for Dummies Questions & Answers
I have tried various arguments to get the date display as "Mar 10".
I have tried
date +"%c" -------> Wed Mar 10 11:51:21 EST 2010
date +"%b%d%Y_%H%M%S" --------> Mar102010_115121
date +"%b%d" -------> Mar10
date +"%t%b%e" ... (3 Replies)
Discussion started by: moveaix
3 Replies
6. Shell Programming and Scripting
Hi,
My file
cat a.txt
Sat Nov 27 00:02:00 2010
00:02:00 Usr 27: Login by edi on batch. (452)
00:02:09 Usr 27: Logout by on batch. (453)
00:02:09 Usr 27: Login by edi on batch. (452)
00:02:22 Usr 27: Logout by on batch. (453)
00:02:22 Usr 27: Login by edi on batch.... (3 Replies)
Discussion started by: ganeshanbu
3 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I would like to know how to display my output to this format below:
5000 Bash
300 zsh
0 sh
... (4 Replies)
Discussion started by: scopiop
4 Replies
8. Shell Programming and Scripting
I have a file , the file content will be modified regularly , its structure as below, the lines are begins with "A" and "B" .
#vi file1
this is testing file
A aaaaa
B bbbbb
A ccccc
B ddddd
A eeeee
B fffff
A ggggg
B hhhhh
I would like to have a script to use the... (3 Replies)
Discussion started by: ust3
3 Replies
9. UNIX for Beginners Questions & Answers
Hello Sir/Madam,
I'm using Putty utility to run a shell script. I found HOUR display in two positions in UNIX. Is it possible to display in four positions?
File name example: my file name is: HourlyData_20160708_1400.txt
I'm in the process of comparing current date and time with the file... (15 Replies)
Discussion started by: V1l1h1
15 Replies
10. Post Here to Contact Site Administrators and Moderators
Write a script named time that displays the time in standard 12-hour format, rather than 24-hour format. Allow the user to give a -m option to get 24-hour format. For example:
> date
Sun Feb 10 10:56:50 CST 2008
> time
10:56 AM
> date
Sun Feb 10 21:57:07 CST 2008
> time
9:57 PM
>... (0 Replies)
Discussion started by: satish24
0 Replies
LEARN ABOUT CENTOS
xmclipboardstartretrieve
XmClipboardStartRetrieve(library call) XmClipboardStartRetrieve(library call)
NAME
XmClipboardStartRetrieve -- A clipboard function that prepares to retrieve data from the clipboard
SYNOPSIS
#include <Xm/CutPaste.h>
int XmClipboardStartRetrieve (display, window, timestamp)
Display * display;
Window window;
Time timestamp;
(void)
DESCRIPTION
XmClipboardStartRetrieve tells the clipboard routines that the application is ready to start copying an item from the clipboard. The clip-
board is locked by this routine and stays locked until XmClipboardEndRetrieve is called. Between a call to XmClipboardStartRetrieve and a
call to XmClipboardEndRetrieve, multiple calls to XmClipboardRetrieve with the same format name result in data being incrementally copied
from the clipboard until the data in that format has all been retrieved.
A return value of XmClipboardTruncate from calls to XmClipboardRetrieve indicates that more data remains to be copied in the given format.
It is recommended that any calls to the Inquire functions that the application needs to make to complete the copy from the clipboard be
made between the call to XmClipboardStartRetrieve and the first call to XmClipboardRetrieve. This way, the application does not need to
call XmClipboardLock and XmClipboardUnlock.
display Specifies a pointer to the Display structure that was returned in a previous call to XOpenDisplay or XtDisplay.
window Specifies the window ID of a widget that relates the application window to the clipboard. The widget's window ID can be obtained
through XtWindow. The same application instance should pass the same window ID to each of the clipboard functions that it calls.
timestamp Specifies the time of the event that triggered the copy. A valid timestamp must be supplied; it is not sufficient to use Cur-
rentTime.
RETURN
XmClipboardSuccess
The function is successful.
XmClipboardLocked
The function failed because the clipboard was locked by another application. The application can continue to call the function
again with the same parameters until the lock goes away. This gives the application the opportunity to ask if the user wants to
keep trying or to give up on the operation.
RELATED
XmClipboardEndRetrieve(3), XmClipboardInquireCount(3), XmClipboardInquireFormat(3), XmClipboardInquireLength(3), XmClipboardInquirePendin-
gItems(3), XmClipboardLock(3), XmClipboardRetrieve(3), XmClipboardStartCopy(3), and XmClipboardUnlock(3).
XmClipboardStartRetrieve(library call)