This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env expect | |
# Login into PTT via SSH. | |
# Combine crontab with this script so you don't forget to login PTT everyday. | |
# Usage: /bin/bash -c ${FILE_PATH_OF_THIS_SCRIPT} | |
# Example in crontab: | |
# ptt auto login, every day at 12:00 PM | |
# 0 12 * * * /bin/bash -c ${ABSOLUTE_FILE_PATH_OF_THIS_SCRIPT} |