How can I capture and store the process ID of a nohup command that run in crontab?
this is my cron
35 * * * * cd /home/ubuntu/aws/&&nohup python3 upload_s3.py >> output_upload_occ.txtIdeally, I want to know what is process ID given and store it for later analysis
i.e nohup python3 upload_s3.py >> output_upload_occ.txt will give[1] 68585 I want to store this PID into log file.