add bash scripts
This commit is contained in:
parent
fd7bfc8270
commit
762c7a52be
15
README.md
15
README.md
@ -63,3 +63,18 @@ Les merge requests sont bienvenues.
|
||||
par tykayn: contact at cipherbliss.com, https://www.cipherbliss.com
|
||||
|
||||
https://mastodon.cipherbliss.com
|
||||
|
||||
# Cronjob
|
||||
|
||||
```
|
||||
12 12-14 * * * cd /home/tykayn/www/mastodon_multi_account && nvm use 16 && node helpers/tkblogPost.js | tee -a /home/tykayn/log_autopost.txt 2>&1
|
||||
0 7 * * * cd /home/tykayn/www/mastodon_multi_account && nvm use 16 && node helpers/wiki_osm.mjs | tee -a /home/tykayn/log_autopost.txt 2>&1
|
||||
0 0 * * * cd /home/tykayn/www/mastodon_multi_account && nvm use 16 && node helpers/postQzine.js | tee -a /home/tykayn/log_autopost.txt 2>&1
|
||||
# version avec scripts bash
|
||||
0 7 * * * su tykayn -c "bash /home/tykayn/wiki_osm.sh"
|
||||
*/30 * * * * su tykayn -c "bash /home/tykayn/meme_poster_random.sh"
|
||||
0 0 * * * su tykayn -c "bash /home/tykayn/post_qzine.sh"
|
||||
14 12-14 * * * su tykayn -c "bash /home/tykayn/tkblog_post.sh"
|
||||
|
||||
|
||||
```
|
4
assets/bash_scripts/meme_poster_random.sh
Normal file
4
assets/bash_scripts/meme_poster_random.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
nvm use 16
|
||||
cd /home/tykayn/www/mastodon_multi_account
|
||||
node helpers/meme_poster_random.js | tee -a /home/tykayn/log_autopost.txt 2>&1
|
4
assets/bash_scripts/osm_wiki.sh
Normal file
4
assets/bash_scripts/osm_wiki.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
nvm use 16
|
||||
cd /home/tykayn/www/mastodon_multi_account
|
||||
node helpers/wiki_osm.mjs | tee -a /home/tykayn/log_autopost.txt 2>&1
|
4
assets/bash_scripts/post_qzine.sh
Normal file
4
assets/bash_scripts/post_qzine.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
nvm use 16
|
||||
cd /home/tykayn/www/mastodon_multi_account
|
||||
node helpers/postQzine.js | tee -a /home/tykayn/log_autopost.txt 2>&1
|
4
assets/bash_scripts/tkblog_post.sh
Normal file
4
assets/bash_scripts/tkblog_post.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
nvm use 16
|
||||
cd /home/tykayn/www/mastodon_multi_account
|
||||
node helpers/tkblogPost.js | tee -a /home/tykayn/log_autopost.txt 2>&1
|
Binary file not shown.
Before Width: | Height: | Size: 29 KiB |
Binary file not shown.
Before Width: | Height: | Size: 60 KiB |
Loading…
Reference in New Issue
Block a user