Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top