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

ps has to be written in lower case, not upper. Also if you leave out the grep, you should get some data displayed. If adding the grep does show nothing, then either your pattern is wrong or there is nothing like this in the process list.

Also when -ef or aux etc. is not sufficient for you, you might want to use -o and specify each column/identifier you need manually.

Sample of it.

ps -o ppid,pid,tty,time