Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 3857  / 3 Years ago, mon, may 24, 2021, 11:52:49

I was trying to use @reboot /my/script in cron to run a script on a 10.04.4 VM running in VMware Fusion top print ifconfig to a file on a shared directory, which is /mnt/hgfs/somedir.



It didn't work because hgfs is not mounted yet as a remote directory when the system starts. Is it possible to do something like @reboot +10s to run the cron job 10 sec after the system starts, when I can realistically expect to have that remote directory mounted on the system?


More From » mount

 Answers
3

You could simply add



sleep 10


to the beginning of your script. This way, your script will "sleep" (wait) 10 seconds before continuing.


[#25338] Wednesday, May 26, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
elecerna

Total Points: 140
Total Questions: 121
Total Answers: 107

Location: Northern Ireland
Member since Sun, Nov 21, 2021
3 Years ago
;