Hi,
I need to execute the below script in python to find the ip address of a host
/sbin/ifconfig'+'|'+' grep 'inet addr:''+'|'+' grep -v '127.0.0.1''+'| '+'cut -d: -f2'+'|'+'awk '{ print $1}'
Please let me know how can I execute that in python script.
Regards,
Siva
I need to execute the below script in python to find the ip address of a host
/sbin/ifconfig'+'|'+' grep 'inet addr:''+'|'+' grep -v '127.0.0.1''+'| '+'cut -d: -f2'+'|'+'awk '{ print $1}'
Please let me know how can I execute that in python script.
Regards,
Siva
Comment