اگه منظور از nohup این دستور بوده با mail زیر روبرو شدم
* * * * * /usr/bin/pyton3 nohup /PATH/TO/SCRIPT[code][code]
Return-Path: <smjt2000@Enriquette>
X-Original-To: smjt2000
Delivered-To: smjt2000@Enriquette
Received: by Enriquette (Postfix, from userid 1000)
id C14C723F1B6; Sat, 3 Jul 2021 08:55:01 +0430 (+0430)
From: root@Enriquette (Cron Daemon)
To: smjt2000@Enriquette
Subject: Cron <smjt2000@Enriquette> /usr/bin/python3 nohup /home/smjt2000/Programming/Projects/Python/test.py
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/smjt2000>
X-Cron-Env: <LOGNAME=smjt2000>
Message-Id: <20210703042501.C14C723F1B6@Enriquette>
Date: Sat, 3 Jul 2021 08:55:01 +0430 (+0430)
X-UID: 128
Status: O
/usr/bin/python3: can't open file '/home/smjt2000/nohup': [Errno 2] No such file or directory
با at فایل ساخت دایرکتوری کار میکنه:
-smjt2000@Enriquette Python
➜ at 09:09
warning: commands will be executed using /bin/sh
at> python3 /home/smjt2000/Programming/Projects/Python/test.py
at> <EOT>
job 3 at Sat Jul 3 09:09:00 2021
فایل تغییر عکس پس زمینه هم کار میکنه