1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-04-15 14:38:17 +02:00

Added daily-tasks.sh

This commit is contained in:
Markus Fleschutz 2021-02-06 16:14:05 +01:00
parent 25df5e5ae7
commit a16d20dece
3 changed files with 20 additions and 0 deletions

View File

@ -13,6 +13,7 @@ close-thunderbird.ps1, closes Mozilla Thunderbird gracefully
close-windows-terminal.ps1, closes Windows Terminal gracefully
configure-git.ps1, sets up the Git configuration
csv-to-text.ps1, converts the given CSV file into a text list
daily-tasks.sh, execute PowerShell scripts automatically as daily tasks (Linux only)
decrypt-file.ps1, decrypts the given file
display-time.ps1, displays the current time for 10 seconds by default
download.ps1, downloads the file/directory from the given URL

1 Filename Description
13 close-windows-terminal.ps1 closes Windows Terminal gracefully
14 configure-git.ps1 sets up the Git configuration
15 csv-to-text.ps1 converts the given CSV file into a text list
16 daily-tasks.sh execute PowerShell scripts automatically as daily tasks (Linux only)
17 decrypt-file.ps1 decrypts the given file
18 display-time.ps1 displays the current time for 10 seconds by default
19 download.ps1 downloads the file/directory from the given URL

View File

@ -21,6 +21,7 @@ The following PowerShell scripts can be found in the [Scripts/](Scripts/) subfol
* [close-windows-terminal.ps1](Scripts/close-windows-terminal.ps1) - closes Windows Terminal gracefully
* [configure-git.ps1](Scripts/configure-git.ps1) - sets up the Git configuration
* [csv-to-text.ps1](Scripts/csv-to-text.ps1) - converts the given CSV file into a text list
* [daily-tasks.sh](Scripts/daily-tasks.sh) - execute PowerShell scripts automatically as daily tasks (Linux only)
* [decrypt-file.ps1](Scripts/decrypt-file.ps1) - encrypts the given file
* [display-time.ps1](Scripts/display-time.ps1) - displays the current time for 10 seconds by default
* [download.ps1](Scripts/download.ps1) - downloads the file/directory from the given URL

18
Scripts/daily-tasks.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
#
# Syntax: ./daily-tasks.sh
# Description: execute PowerShell scripts automatically as daily tasks (Linux only)
# copy this script to /etc/cron.daily and adapt it
# Author: Markus Fleschutz
# License: CC0
HOMEDIR=/home/mf
# adapt this to your home directory
$HOMEDIR/PowerShell/Scripts/query-smart-data.ps1 $HOMEDIR
# to query S.M.A.R.T. data of all your HDD's/SSD's
$HOMEDIR/PowerShell/Scripts/train-dns-cache.ps1
# to train the DNS cache with well-known domain names
exit 0