ps command input


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers ps command input
# 1  
Old 01-27-2009
ps command input

Hi,
When we issue a ps command we get some output.
From where does this ps command take the input from?

Thanks in advance.
# 2  
Old 01-27-2009
Depends on the OS. On Linux it's the /proc pseudo-fs, on HP-UX it's through the pstat_get* kernel interface functions.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Input for read command

Hello, I want to use the read command in order to input a keyword from the keyboard. I then want to use this keyword in a grep command. How to I input a phrase as a keyword? For example if I use read keyword "today is" and then use grep, I get "No such file or directory" error. (6 Replies)
Discussion started by: FelipeAd
6 Replies

2. Hardware

DD command using block device as input

Hi, I am trying to measure the speed of reading a given block size using the dd command. However depending on which input I use: a regular file (on the same device) or /dev/sdb1, I get some really different results. $sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'; dd if=pirate of=/dev/null... (9 Replies)
Discussion started by: nytty
9 Replies

3. Shell Programming and Scripting

Automatic Input to a command

Hi, I have an issue where i run an command in a shell script. command >/dev/null ret=$? echo ret If the command returns an error i'm redirecting it to /dev/null. The prob is if an error comes it expects the user to press return to continue. And hence the return is not echoed. and the end... (4 Replies)
Discussion started by: subhrap.das
4 Replies

4. Shell Programming and Scripting

input value to a command thru shell

Hi, I'm trying to create files in ccm thru a shell as the number of files that i need to create is in hundreds The problem here is the command prompts for the file type to be entered by the user. I need all the files to be created with "ascii" as file type. So how can i input a... (1 Reply)
Discussion started by: dvah
1 Replies

5. Shell Programming and Scripting

Passing input to perl command

Hi, In awk in can pass input to a command like this echo "1 2" | awk '{p=$1+$2;print v}'or I can use v option to pass input to awk command In the similar way How can I pass input to a perl command. For example : perl -pi -e 'if ( $. == 2 ) {print "Hello\n" }' input.txtIn the above... (1 Reply)
Discussion started by: john_noble
1 Replies

6. UNIX for Dummies Questions & Answers

problem with output of find command being input to basename command...

Hi, I am triying to make sure that there exists only one file with the pattern abc* in path /path/. This directory is having many huge files. If there is only one file then I have to take its complete name only to use furter in my script. I am planning to do like this: if ; then... (2 Replies)
Discussion started by: new_learner
2 Replies

7. Shell Programming and Scripting

Using output to input another command

Hi guys. Is it possible (I'm sure it is) to use the output of a simple 'ls' command as input of another command 'tail'. It is not really the output of the 'ls'. I have to useeach line of the output. This is the first command... ls *myFile*021308* Which it outputs many filenames. For each... (3 Replies)
Discussion started by: rodrimuino
3 Replies

8. UNIX for Dummies Questions & Answers

Command to accept input

I am trying to write a one line command for Oracle grid control. I am using a semi-colon to separate the commands. But, I am having a problem with a shell script accepting input. Wondering if you can help. Here is what I am trying to do: (PGPRD5432)@prd01:/> cd /export/home/postgres ##... (3 Replies)
Discussion started by: rexmabry
3 Replies

9. Shell Programming and Scripting

Using Output from one command as input to another

This site has been very helpful thus far.. I thank you all in advance for sharing the knowledge. Let me get to it. I am trying to write a very small script to take away from the boredom of doing the same thing over and over. Everynow and again I have to get the hex value of a file using a... (2 Replies)
Discussion started by: BkontheShell718
2 Replies

10. UNIX for Dummies Questions & Answers

input to a command...

hi all.. I am running this command in linux from a shell script....gpg --output encrypted_file.gpg --encrypt --recipient santhosh@yahoo.com /home/test2/actectest/san.zip.....this is a command for encrypting a file using GnuPG tool.....and while the command is running it stops in between... (1 Reply)
Discussion started by: santy
1 Replies
Login or Register to Ask a Question