Results 1 to 2 of 2
Thread: SSH and icmp
Enjoy an ad free experience by logging in. Not a member yet? Register.
SSH and icmp
& is there a way to send ICMP packet (with specific type) and intercept the answer back?
- Join Date
- Oct 2001
- Täby, Sweden
I moved this post to a new thread. There's no benefit from reusing old threads for unrelated issues.
Anyway, there is no way built into bash to do what you ask (nor should there be -- bash is basically a program launcher, and does very little by itself).
As for SSH, is there any reason why you can't just run the ordinary ssh client to do the job?
As for ICMP, as a normal user, you couldn't do it even if bash had built in functions for ICMP, since ICMP requires root access. Probably the easiest way to do ICMP calls is to just write a small C program to do the work. If you need a sample, you can look at the source of the ICMP host name tool suite I've written: