Skip to content

Commit 96310cf

Browse files
Renamed the urlwatcher directory again since the urlwatcher script has to be placed in this directory anyways
1 parent 2dd27cf commit 96310cf

File tree

12 files changed

+10
-8
lines changed

12 files changed

+10
-8
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ deploy.sh
99
**/geckodriver.log
1010
/Notifier
1111
permissions.txt
12-
URL Watcher/urls.list
13-
URL Watcher/images/*
12+
urlwatcher/urls.list
13+
urlwatcher/images/*
14+
urlwatcher/urlwatcher
1415
NotifierBot/.build
1516

1617

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ For the bot to work, you first need the following things:
6161
7. Make the telegram script executable: `chmod +x tools/telegram.sh`
6262
8. Repeat steps 2 - 5 for the urlwatcher script:
6363
```swift
64-
cd "URL Watcher"
64+
cd urlwatcher
6565
swift build -c release
66-
cp .build/release/urlwatcher ..
66+
cp .build/release/urlwatcher .
6767
cd ..
6868
```
6969

@@ -82,16 +82,17 @@ $ tree -L 2
8282
├── tools
8383
│   ├── screenshot.sh
8484
│   └── telegram.sh
85-
└── URL Watcher
85+
└── urlwatcher
8686
├── Package.swift
8787
├── Sources
88+
├── urlwatcher
8889
└── urlwatcher.sh.old
8990
```
9091

9192
### Adding the urlwatch script to crontab
9293
For the urlwatch script to be periodically executed, you have to create a cronjob for it.
9394
1. Edit the crontab file: `crontab -e`
94-
2. Add the following line at the end: `*/30 * * * * /path/to/your/install/directory/urlwatcher`
95+
2. Add the following line at the end: `*/30 * * * * /path/to/your/install/directory/urlwatcher/urlwatcher`
9596
This executes the script every 30 minutes. To execute it e.g. every hour, use `0 * * * *` (every time the minute is zero).
9697
3. Save the file
9798

URL Watcher/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata renamed to urlwatcher/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

File renamed without changes.

URL Watcher/.swiftpm/xcode/xcshareddata/xcschemes/urlwatcher.xcscheme renamed to urlwatcher/.swiftpm/xcode/xcshareddata/xcschemes/urlwatcher.xcscheme

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)