Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gndhar/auto-netaccess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IITM Netacess Auto Update

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.

Setup

Setup script

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.

Manual

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.

About

Automatic renewal of authorization for IITM netaccess

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published