how do I pause execution of the korn shell script ?

I have a Korn shell script and I need to pause it while executing.  Is there any keyword that will allow me to pause execution until I hit a key and then execute the rest of the script??      
rahmanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rickyrCommented:
type............
jobs
this will return a list of your current running processes.
do..........
fg %1
this will bring process number one to the foreground, now
type control-z this will pause it.
to start it running again do........
bg %1 this will start it off again in the background.
This works the same as the "c" shell.
regards
0
ahoffmannCommented:
echo -n "hit Return key to continue .."
read q
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rickyrCommented:
Find the process id first.....
ps -ef | grep "process_name"

then, to pause it
kill -STOP process_id

to restart it.
kill -CONT process_id

You have to be root to manipulate processes you don't own.

regards
0
rahmanAuthor Commented:
Thanks for all the help guys! :)
0
rahmanAuthor Commented:
Thanks for all the help guys! :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.