Refactored ship_log_func() to use subprocess.call()