Hallo ich habe folgendes Script(1) in crontab aufgenommen >>>
--------------------------------------------------------------------------------------------------------------------------------
#!/bin/bash -e
# mkdir '/home/internet/Downloads/Bilder'
cp -u -r '/home/internet/Bilder' '/home/internet/Downloads/Bilder'
# mkdir '/home/internet/Downloads/Musik'
cd '/home/internet/Musik'
cp -u -r * '/home/internet/Downloads/Musik'
# mkdir '/home/internet/Downloads/Videos'
cd '/home/internet/Videos'
cp -u -r '/home/internet/Videos' '/home/internet/Downloads/Videos'
# mkdir '/home/internet/Downloads/Dokumente'
cd '/home/internet/dwhelper'
cp -u -r '/home/internet/Dokumente' '/home/internet/Downloads/Dokumente'
# mkdir '/home/internet/Downloads/dwhelper'
cp -u -r '/home/internet/dwhelper' '/home/internet/Downloads/dwhelper'
# mkdir '/home/internet/Downloads/bash_history'
cp '/home/internet/.bash_history' '/home/internet/Downloads/bash_history'
cd '/home/internet/Schreibtisch/Strom-Gas/'
cp -u -r * '/home/internet/Downloads/Strom-Gas'
cd '/home/internet/.mozilla/'
cp -u -r * '/home/internet/.mozilla' '/home/internet/Downloads/'
cd '/home/internet/.thunderbird/'
cp - u -r * '/home/internet/.thunderbird' '/home/internet/Downloads/'
find '/home/internet/Downloads/' -type d -exec chmod -R 0777 {} +
#find '/home/i/Downloads/' -type d -exec chmod a+rwx {} +
________________________________________________________________________
meine crontab >>>
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
#
*/1 * * * * echo 'vor' >> '/home/internet/Schreibtisch/Downloads/Strom-Gas/2016/Oktober/vor.txt' && '/home/internet/Schreibtisch/migration2.sh' && echo 'nach' >> '/home/internet/Schreibtisch/Downloads/Strom-Gas/2016/Oktober/nach.txt'
#> /dev/null 2>&1
#
#h dom mon dow command
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
die Datei vor.txt wird erstellt!
die Datei nach.txt wird nicht erstellt.
Was daufhindeutet das das obige Scrip(1) nicht abgearbeitet wird.
Wo muss ich den Fehler suchen?
--------------------------------------------------------------------------------------------------------------------------------
#!/bin/bash -e
# mkdir '/home/internet/Downloads/Bilder'
cp -u -r '/home/internet/Bilder' '/home/internet/Downloads/Bilder'
# mkdir '/home/internet/Downloads/Musik'
cd '/home/internet/Musik'
cp -u -r * '/home/internet/Downloads/Musik'
# mkdir '/home/internet/Downloads/Videos'
cd '/home/internet/Videos'
cp -u -r '/home/internet/Videos' '/home/internet/Downloads/Videos'
# mkdir '/home/internet/Downloads/Dokumente'
cd '/home/internet/dwhelper'
cp -u -r '/home/internet/Dokumente' '/home/internet/Downloads/Dokumente'
# mkdir '/home/internet/Downloads/dwhelper'
cp -u -r '/home/internet/dwhelper' '/home/internet/Downloads/dwhelper'
# mkdir '/home/internet/Downloads/bash_history'
cp '/home/internet/.bash_history' '/home/internet/Downloads/bash_history'
cd '/home/internet/Schreibtisch/Strom-Gas/'
cp -u -r * '/home/internet/Downloads/Strom-Gas'
cd '/home/internet/.mozilla/'
cp -u -r * '/home/internet/.mozilla' '/home/internet/Downloads/'
cd '/home/internet/.thunderbird/'
cp - u -r * '/home/internet/.thunderbird' '/home/internet/Downloads/'
find '/home/internet/Downloads/' -type d -exec chmod -R 0777 {} +
#find '/home/i/Downloads/' -type d -exec chmod a+rwx {} +
________________________________________________________________________
meine crontab >>>
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
#
*/1 * * * * echo 'vor' >> '/home/internet/Schreibtisch/Downloads/Strom-Gas/2016/Oktober/vor.txt' && '/home/internet/Schreibtisch/migration2.sh' && echo 'nach' >> '/home/internet/Schreibtisch/Downloads/Strom-Gas/2016/Oktober/nach.txt'
#> /dev/null 2>&1
#
#h dom mon dow command
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
die Datei vor.txt wird erstellt!
die Datei nach.txt wird nicht erstellt.
Was daufhindeutet das das obige Scrip(1) nicht abgearbeitet wird.
Wo muss ich den Fehler suchen?