I want to write a shell script which
- initiate a process which that gets data from a data base and and writes to a file (time to do this varies from 5 min - few hours)
- Use the data in the generated file and do some calculations
What command can I use in shell to pause till my first process is complete before executing the second part as the second part should not start till writing to the file is complete?
pgrep), yes.