I have a script that runs from cron every 15 minutes. The script is meant to ping my DNS server to update a dynamically changing IP. I want this script to ping through the
wlan interface and not the
However, other processes should use
eth0 as the primary interface to access the internet.
How do I do this for a specific process only without disturbing other processes? Is there a way to direct traffic through interface like directing stdout? like
ls -al > /dev/tty2'. Can
chroot help me in this by giving me a sandboxed environment?