How to find memory used by a process

Hi,
Can anyone help me out in writing the shell scrip which monitors a process which is running and gives me the output of the memory being used by the process, I have the requirement of monitorig the memory usage of the process when it is running.

Please help me out

A colleague of mine asked a similiar question, the other day.

Here is an answer that was given - Re: Memory Footprint claims

hi
add this entry " ps -fl > /dev/console " in the crontab file
it ll show u the size of the core file taken by each of the process .
u can also modify the cron entry for dates as per ur needs
i suppose this might be of some help to u

i do not have permissions to acees crontab