Bash?

Python code posted
created at 19 Oct 19:07

Edit | Back
1
2
3
4
5
#!/bin/sh

remoteIP=$(/sbin/ifconfig  | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | grep '192.128' | awk '{print $2}')

/sbin/route -n add -host 123.255.255.123 $remoteIP >> /tmp/ppp.log 2>&1
196 Bytes in 2 ms with coderay