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.shchmod +x drupal_backup_update.sh
while :
do
date
echo "Hello "
sleep 5
done
while : ; do date; echo "Hello "; sleep 6; doneComposer 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
Try this:1. Go to Tools &…
Try this:
Alternative (without warnings like "no crontab for user")
Alternative (without warnings like "no crontab for dovecot") to see all tasks:
php 8.3 apcu
php 8.3 apcu failed
über Plesk hat es geklappt.
phpize failed error?
install:
# sudo apt install php-devphpize
# sudo apt install…
phpize
# sudo apt install php-devdetails
Problem:
/opt/plesk/php/8.3…
Problem:
Problem:PHP APCu caching…
Problem:
Hilft "cp -avf old new && rm…
Hilft "
cp -avf old new && rm -rvf old"nicht?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: