Shell - Wait For File To Be Created
Last Updated: 2133Z 02DEC20 (Created: 2133Z 02DEC20)

Examples:

Local File:

$ while [ ! -f /path/to/file ]; do sleep 1; done

Remote File:

$ ssh -t <HOST> 'while [ ! -f /path/to/file  ]; do sleep 1; done'