From 8fb87ef497e34979051aac5165c7b904a04b418d Mon Sep 17 00:00:00 2001 From: Radek Date: Thu, 20 Feb 2025 15:55:29 +0000 Subject: [PATCH] some fixes --- tests.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests.md b/tests.md index 77f8253..3a77165 100644 --- a/tests.md +++ b/tests.md @@ -80,4 +80,22 @@ Completion report generated: completion_report_20250220_135033.txt Changed edge case were 0 files were transfered or incorectly processed from the log creating a division by 0 error. added check if it is running still to ensure we do not spawn many proccesses. It should start via cron at 15 and then be re run every hour untill 7Am where it should detect restricted business hours window and do nothing. +Failed due to how cron and its enviroment work. + --- +Feb 20 15:25:02 alma-azure-test CROND[8956]: (test) CMD (/usr/bin/env bash -lc /opt/AZURE/run_azcopy.sh /opt/AZURE/BLOB/ true 20) +Feb 20 15:25:02 alma-azure-test CROND[8954]: (test) CMDOUT (Usage: /opt/AZURE/run_azcopy.sh [log=true|false] [bandwidth_mbps]) +Feb 20 15:25:02 alma-azure-test CROND[8954]: (test) CMDEND (/usr/bin/env bash -lc /opt/AZURE/run_azcopy.sh /opt/AZURE/BLOB/ true 20) + +#6th test. + +modified the cron job definition to. + +27 * * * * /usr/bin/env bash -lc '/opt/AZURE/run_azcopy.sh /opt/AZURE/BLOB/ true 20' + +Should ensure proper execution in a users envirmont. + +--- +That worked and its running in the background. + +