I am fairly new to Ubuntu, so I apologize for any bad questions.
I am making a C program that syncs multiple folders to remote destinations. I am planning to invoke this script from the C program: Automatic synchronization via rsync.
The script only works for 1 directory, so I will have to have many instances to cover each directory. Therefore, I want to run the scripts in the background instead of terminals popping up everywhere.
Then there's also the problem of how do I kill all the background scripts that are endlessly looping when user decides to stop synchronization.
Thanks in advance!