LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 08-02-2021, 02:12 AM   #1
Pavanchowdary
LQ Newbie
 
Registered: Jul 2021
Posts: 3

Rep: Reputation: Disabled
Reading password when it prompts in Automation


Hi,

Pavan here,

I've been working on automation using shell script.
I'll connect ro snowflake using snowsql command. Which it will ask password. Here i need to automate the password reading.Can anyone help me on that please.
I've been thinking of using
read -p "password: " -s password

Thanks
Pavan
 
Old 08-02-2021, 04:49 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,864

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
https://docs.snowflake.com/en/user-g...hen-connecting
you ought to use a config file instead
 
1 members found this post helpful.
Old 08-02-2021, 10:14 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,637

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Pavanchowdary View Post
Hi, Pavan here,

I've been working on automation using shell script. I'll connect ro snowflake using snowsql command. Which it will ask password. Here i need to automate the password reading.Can anyone help me on that please. I've been thinking of using
read -p "password: " -s password
Ok...so why don't you write your script and try it, using what you thought about, and see if it works? We're happy to help you, but you need to show us YOUR efforts first. Post what you have written/done/tried, and tell us where you're stuck. But we WILL NOT write your scripts for you.

Otherwise, there are THOUSANDS of bash scripting tutorials you can find online, including the one in my posting signature. And this has been pointed out to you before, in your other threads:
https://www.linuxquestions.org/quest...ds-4175698210/
https://www.linuxquestions.org/quest...es-4175698447/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rdesktop Server & Password Prompts? DHR Linux - Software 1 12-12-2008 11:52 AM
(Samba 3.0.20) Vista prompts for username, XP prompts just for password Noffie Linux - Server 2 07-21-2008 10:26 AM
passwd prompts for new password only once when a short password is entered powah Linux - Security 0 09-19-2007 04:20 PM
SVN and Apache, multiple password prompts watsoncj Linux - Software 0 10-10-2005 01:36 PM
mount - a passwdless 98 share prompts for password bkeating Linux - Software 1 11-22-2002 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 01:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration