Skip to content

A simple implemented website update monitor by shell.

License

Notifications You must be signed in to change notification settings

WLFJ/Shellpider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shellpider

A simple implemented website update monitor by shell.

Usage

First rename mailit.example.sh to mailit.sh, edit it with necessary info. And also for shell-spider.sh, add both sender and receiver email address.

Then run following command make sure you can receieve email from script(due to your internet connection, it may take time. ):

echo -e "From:mail1@yourdomain.com\nTo:mail2@yourdomain.com\nSubject:It works!\n\nCongratulations!" > mail.txt && bash mailit.sh && rm -f mail.txt

Then look at **-template.sh modify it make sure it can get correct infomation back.

One last step, move all your modified sh script to website_shell/ folder (I know, a bad name) and run following command to make it run at background. (or just bash shell-spider.sh make sure everything works well. )

nohup bash shell-spider.sh &

It will run in background.

Anyway you can kill the task:

kill $(ps aux | grep shell-spider.sh | cut -d " " -f 2-3 | head -1)

About

A simple implemented website update monitor by shell.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages