Hi, this is my first approach to shell scripts and Iím a bit lost .
I have a server-client app, and I want to run a server with a pair of clients. So I run this 3 processes in background, but when I need to stop them, I donít know how. Is there any equivalent to Ctrl-C with shell scripts?
Iíve been searching on bash man for something like getting its pid and later killing them, but couldnít find how. Any suggestion?
And another silly question is How can I make my shell wait for N seconds before running next command?
I need the second client to start about 20 secs after the 1st one has connected so Iíve solved this by repeating a few ďlsĒ between them but its ridiculous and Iím sure there has to be another way.
To give you an idea of how newbie I am, hereís my script:
./run > servertrc.txt &
Thanks for any help or hint!