467,146 Members | 1,042 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,146 developers. It's quick & easy.

system command

Hi all
i have a cgi which has ping and stop button when i click it sends system ('ping 126.56.36.80 -t') which continously get the ping status of the ip until we send CTRL+c , but when i click stop button in need to send CTRL+C command , how can we achive this?or else how can we kill the process running?


thanking you in advance
Jul 17 '08 #1
  • viewed: 1112
Share:
3 Replies
numberwhun
Expert Mod 2GB
Why not use the -c option to limit the count (# of pings) to a specific number. That way, it kills itself.

Regards,

Jeff
Jul 17 '08 #2
KevinADC
Expert 2GB
Hi all
i have a cgi which has ping and stop button when i click it sends system ('ping 126.56.36.80 -t') which continously get the ping status of the ip until we send CTRL+c , but when i click stop button in need to send CTRL+C command , how can we achive this?or else how can we kill the process running?


thanking you in advance
You will have to find the process ID and then kill it if you really want to do something like this. You can maybe do that with perl if your system allows you access stuff like ps and kill from your account.
Jul 18 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by Siemel Naran | last post: by
6 posts views Thread by JLK | last post: by
15 posts views Thread by Sokar | last post: by
2 posts views Thread by Xah Lee | last post: by
11 posts views Thread by jobs239@hotmail.com | last post: by
7 posts views Thread by Mark Rae | last post: by
23 posts views Thread by student.matt@gmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.