linux excuting 2 tasks in turns