Вопрос

What programming language has the capability to automatically execute terminal commands?

Say I want to scan a Wifi network for IP addresses using arp -a and print those IP addresses to the screen?

What programming language is best equipped to do this? Python? Ruby?

Это было полезно?

Решение

Almost all modern programming languages has the capability to execute terminal commands (in python you can use the os or subprocess modules).

But for your project I would be easier if you use bash script http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top