Crontab:
SHELL="/bin/sh"
1 2 3 4 5 /path/to/my/cron.py
SHELL="/bin/bash"
Crontab:
SHELL="/bin/sh"
1 2 3 4 5 /path/to/my/cron.py
SHELL="/bin/bash"
Reload .bash_profile via Shell / Commandline (without Relogin)
. ~/.bash_profile
mail -s "Subject of my test e-mail" info@example.com <<< "Content of my test e-mail"
oder
echo "Content of my test e-mail" | mail -s "Subject of my test e-mail" info@example.com
15 3 * * * /path/to/drupal_backup_update.sh
chmod +x drupal_backup_update.sh
while :
do
date
echo "Hello "
sleep 5
done
while : ; do date; echo "Hello "; sleep 6; done
Composer Output an PHP-Variable:
<?php
$output = shell_exec( "composer update --dry-run 2>&1" );
echo $output;
for d in ./*/ ; do (cd "$d" && my_linux_command); done
Szenario:
Mehrere Personen laden tausende Dateien wie Bilder-Videos usw per FTP hoch. Eine Überschreibungsgefahr existiert. Wir wollen Dateien die komplett hochgeladen sind, verschieben. In diesem Fall, Dateien, die in der letzten 11 Minuten geändert wurden, werden als offene Dateien behandelt und nicht verschoben. Rest wird verschoben.
* * * * * /usr/bin/find /home/meinFTPOrdner1 -mmin +11 -exec /bin/mv -v {} /home/meinFTPOrdner2/ \; >> /logs/output-von-mv.txt
Diese Fehler steht in Logs, wenn der Cronjob läuft :
/bin/sh: 1: Syntax error: end of file unexpected (expecting ")")
Was ist hier in diesem Cronjob-Eintrag falsch?
41 18 * * * /bin/tar -zcf /backups/www_$(date +%Y-%m).tar.gz /home/website2/public_html
ich versuche mit einer Kombination von find + mv alle .tar.gz Datein zu einen neuen ordner kopieren aber es geht leider nicht. Ich bekomme folgende Fehlermeldung:
find: paths must precede expression: mv
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]
Shell Code ist:
# find ./ -name '*tar.gz' mv -v {} "meine-ordner/" \;
Neueste Kommentare
Same with Drush 13 + PHP 8.3 and my Solution
Same with Drush 13 + PHP 8.3
Error : Failed to install the required package 'RPM' by using AP
Initializing...
Error : Failed to install the required package 'RPM' by using APT. Please install it manually.
Exit
Solution:
Installieren & Aktivieren
So habe es installiert und dann mit Hilfe von Key/Code (über Website von Acronis Cyber Protect) aktiviert:
I have a view with a path…
I have a view with a path like
/my-content-export
to export entivies as JSON or CSV.admin_toolbar 3.5.2 is the…
admin_toolbar 3.5.2 is the reason. Patch coming ...
Tools & Settings >> Security…
Tools & Settings >> Security Policy :
Allow only secure FTPS connections
List config vaiables
/usr/sbin/mariadbd --help --verbose | grep "query.*size"
Restart MariaDB / MySQL
Commandline:
MariaDB Restart (after changes in /etc/mysql/db-performance.cnf)
After my changes in /etc/mysql/db-performance.cnf
Error: configure: error: no acceptable C compiler found in $PATH
Error: