Auto login PTT with Expect
Required Tools
sudo apt-get install expect
Step
Get
ptt.shsudo wget https://raw.github.com/carry0987/Raspberry-Pi-Repo/master/Expect/ptt.shSet
username&passwordvim ptt.shGive the script executing permission
sudo chmod +x ptt.shMove
ptt.shto usr foldersudo mv ptt.sh /usr/local/binNow edit crontab to make the script run every minutes
sudo vim /etc/crontabAdd the following script on the bottom, then save and exit
* 6 * * * root /usr/bin/expect /usr/local/bin/ptt.sh >/dev/null 2>&1Restart cron service
sudo service cron restartFinish