Stopping a command in between

Hi
Is it possible to stop a command executing after certain time?
I have this command say prstat which keeps on giving the values etc of the processes after every 1 sec(refreshes the screen)
What I want is just stop the execution after first screen

Since I have written this command in shell script, I am not sure how I can stop it so that my script continues on the next line(right now it keeps on waiting for the output of this command)
Can someone help?

San

Try 'prstat 1 1'. This will run prstat just once and then quit.

Thanks
Can you explain what does 1 1 do?

From the man page of prstat:

[interval [count]]

The interval and the count is at the end of the command. It means that prstat has to be run at intervals of 'interval' seconds and 'count' number of times. So prstat 1 1 runs the command at one second intervals and runs it just once.