GithubHelp home page GithubHelp logo

test-password-scheduler's Introduction

Installing

First, clone the repo using

git clone https://github.com/guaiamum/test-password-scheduler.git test-schedule

Then cd into the created folder, and install puppeteer locally

npm install puppeteer

After that, input the desired webpage and fields, along with the credentials inside the info.js file You should be able to bash script.sh and get a notification about the expiring date

Using crontab to schedule task

Run crontab -e to edit the current cron's, if you've never done this, it might ask you which editor it should set as default, I recommend nano. Then add the following line to the end of the file:

0 12 * * * cd /path/to/script/ && export DISPLAY=:0 && bash script.sh > output.log 2>&1

About the command above:

  • 0 12 * * 1 tells cron to run the script every Monday at lunch-time (12:00), you may change this to suit your needs, you may use https://crontab.guru/ to calculate it :)
  • cd /path/to/script/ changes directory to the script's location (you should change to the right one), for the script to work properly
  • export DISPLAY=:0 tells the script which display to use (yours might differ, certify running echo $DISPLAY in a terminal window)
  • bash script.sh runs the script with bash
  • > output.log 2>&1 logs the latest output to output.log file (cerated in the script dir), including errors (2>&1)

test-password-scheduler's People

Contributors

caina-jumia avatar guaiamum avatar

Watchers

James Cloos avatar

Forkers

caina-jumia

test-password-scheduler's Issues

Get Rid of warning

script.sh: line 15: warning: command substitution: ignored null byte in input is showing everytime

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.