Console app, shell access and status

Hello guys,

I need to do an app that is console to do some processing and i need in my process to run rsync.

In order to complete the process i need to do several steps and in a certain order, once one step finished i need to start the next one.

Is there a way to get the status of rsync in shell and to know once the process is completed ? and how i can do that ?

Thanks in advance