Automatic authorization renewal for IITM netaccess.
Requires NodeJS, see: NodeJS download and installation.
NOTE: It's recommended to offset your cron times to different values to ensure low workload during specific times like the default time.
Run chmod +x setup.sh && ./setup.sh on your terminal and input the required data. Have a look at cron wiki for understanding cron scheduling conventions.
After changing to current directory, run npm install or npm i to install packages.
Create a file .env and write its contents,
ROLLNO="<your-roll-number>"
PASSWD="<your-password>"
Switch from " to ' if your password contains ".
With the script ready, run crontab -e, and add a new line * * * * * node /path/to/project/index.js. Replace the * * * * * with your own cron schedule.
Refer to cron scheduling convention at cron wiki.