Using bash to login to 3GQQ, receive and send messages