anudeepshetty |
11-23-2010 06:07 AM |
generating the keyboard events in shell script
Hi everyone,
is it possible to generate keyboard event "Ctrl+c" from a shell script code.?
i have written a shell script to compile my application and copy it to the server home directory , inorder to run my application i need to start the server (by running a shell script). but before that i need to stop the the currently running instance of my server. to do that i have to generate a keyboard event (Ctrl+c which i press it manually). i want to automate the entire process by writing a shell script i am able to run the server just by adding ./run.sh in my shell script. but befoe that to stop my server can i generate a keyboard by using a shell script event(ctrL+C) to stop server.?
|