mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-23 08:23:14 +01:00
19 lines
521 B
Bash
Executable File
19 lines
521 B
Bash
Executable File
#!/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
|