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:
parent
25df5e5ae7
commit
a16d20dece
@ -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
|
||||
|
|
@ -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
18
Scripts/daily-tasks.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user