- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Blank an entered value...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2005 02:27 AM
тАО02-18-2005 02:27 AM
I want to script the transfer of files with FTP, but I don't want to assign my password to a value, like user_passwd="password",
I was thinking instead of reading the password like this, read user_passwd, but I would like that when I'm at the prompt the keys that I enter to be not showed at the screen, just like when you issue the passwd commant!! See what I mean!?
Is this possible???
Thanks
Jonathan
Solved! Go to Solution.
- Tags:
- ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2005 02:33 AM
- Tags:
- stty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2005 02:35 AM
тАО02-18-2005 02:35 AM
Re: Blank an entered value...
The idea is:
echo "Enter Login: \c"
read LOGIN
echo "\nEnter Password: \c"
stty -echo
read PASSWD
stty echo
By the way, you can also create a .netrc file so that you don't have to prompt for the passwd. The file should only be able to be read by that user.
- Tags:
- .netrc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2005 02:36 AM
тАО02-18-2005 02:36 AM
Re: Blank an entered value...
trap 'stty echo; exit' 0 1 2 3 15
echo "Enter Password: \c"
stty -echo
read PASSWD
stty echo
Also you may want to have a look at expect tool for this. You can also make use of .netrc file.
Or a better way is to use ssh for this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2005 02:42 AM
тАО02-18-2005 02:42 AM
Re: Blank an entered value...
this work fine!!
stty -echo
read user_passwd
stty echo
Now I got another question... Can I log every thing that is done when the ftp is done?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2005 02:59 AM
тАО02-18-2005 02:59 AM
Re: Blank an entered value...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-18-2005 03:22 AM
тАО02-18-2005 03:22 AM
Re: Blank an entered value...
-v options work!!