How to create a script which opens the browser and logins to a particular Gmail account?

Posted by TechGuru on Ask Ubuntu See other posts from Ask Ubuntu or by TechGuru
Published on 2014-05-29T07:35:37Z Indexed on 2014/05/29 9:43 UTC
Read the original article Hit count: 206

Filed under:
|
|

I have created a bash script login.sh. I want it to open the browser and login to my Gmail account.

I tried using the following command to open the browser with www.gmail.com.

xdg-open http://gmail.com

It opens Gmail home page perfectly.

But I don't know how to pass the username and password for login to Gmail from the bash script.

Is it possible to open the browser and login to Gmail from a script?

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about bash