i'm a linux noob but managed to get efa up and running.
i'm now trying to get the first tuning script working from this post i've found: https://www.linkedin.com/pulse/wie-ich- ... n-zulliger
Code: Select all
cd /home/root/scripts/learn/spam
filename=$(date '+%Y-%m'.7z)
foldername=$(date '+%m')
wget http://untroubled.org/spam/$filename
echo "Extracting Files"
/usr/bin/7za e /home/root/scripts/learn/spam/$filename -o/home/root/scripts/learn/spam/
sleep 10
rm /home/root/scripts/learn/spam/$filename
/home/root/scripts/spam-learn
rm -r /home/root/scripts/learn/spam/$foldername
/home/root/scripts/download-spam-attachments
for f in *.orig; do rm "$f"; done
for f in *.txt; do rm "$f"; done
i've installed 7zip
i've created a untroubled.sh script and started it but i get the following errors:
Code: Select all
[admin@efa01 spam]$ sudo bash untroubled.sh
--2019-11-22 18:54:03-- http://untroubled.org/spam/
Resolving untroubled.org... 69.5.1.51
Connecting to untroubled.org|69.5.1.51|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7607 (7.4K) [text/html]
Saving to: “index.html”
100%[=============================================================================>] 7,607 --.-K/s in 0s
2019-11-22 18:54:03 (331 MB/s) - “index.html” saved [7607/7607]
Extracting Files
7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,2 CPUs AMD Turion(tm) II Neo N40L Dual-Core Processor (100F63),ASM)
Scanning the drive for archives:
1 folder, 2 files, 8063 bytes (8 KiB)
Extracting archive: /home/root/scripts/learn/spam/index.html
ERROR: /home/root/scripts/learn/spam/index.html
Can not open the file as archive
Extracting archive: /home/root/scripts/learn/spam/untroubled.sh
ERROR: /home/root/scripts/learn/spam/untroubled.sh
Can not open the file as archive
Archives: 2
OK archives: 0
Can't open as archive: 2
Files: 0
Size: 0
Compressed: 0
rm: cannot remove `/home/root/scripts/learn/spam/': Is a directory
untroubled.sh: line 17: /home/root/scripts/spam-learn: No such file or directory
rm: cannot remove `/home/root/scripts/learn/spam/11': No such file or directory
untroubled.sh: line 21: /home/root/scripts/download-spam-attachments: No such file or directory
rm: cannot remove `*.orig': No such file or directory
rm: cannot remove `*.txt': No such file or directory
best regards