By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,691 Members | 1,997 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,691 IT Pros & Developers. It's quick & easy.

system command

P: 36
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
Share this Question
Share on Google+
3 Replies


numberwhun
Expert Mod 2.5K+
P: 3,503
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

eWish
Expert 100+
P: 971

KevinADC
Expert 2.5K+
P: 4,059
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.