I want to get the time when program finish. But it always show the same time. Here is my shell script. But it always show that START TIME is same as END TIME.START=$(date +%r) nohup Rscript program_1.R >program_1.Rout & wait & echo START TIME = $START\n END TIME =  `date +%r`;
Get the time when nohup R program finishes
linux;shell script;nohup