Sponsored Content
Full Discussion: Read password from a file
Homework and Emergencies Emergency UNIX and Linux Support Read password from a file Post 302617809 by vipinkumarr89 on Tuesday 3rd of April 2012 06:30:14 AM
Old 04-03-2012
Java fetch the password from file

hello dear,

try this
lets say my password is in /home/vipin/password

vi password.sh
pswd =/home/vipin/password

read =$pswd

try this ..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How To Read A File Remotely Without A Password?

Many thanks to anyone who can help me solve this problem I am having: I am working on an HP-UX system version B.11.11 and I have been tasked with finding a way to read a file on a remote server (cat, grep, etc.) using a specific userID without copying it or moving it to the local machine. ... (0 Replies)
Discussion started by: Korn0474
0 Replies

2. Shell Programming and Scripting

Read Oracle Username password SID from single file and pass it to shell

Dear All I am trying to write one shell which will be running through Cron which contain one SQL query. But I want to draw/fetch the Username password and Instance name (required to loging to the database) from one single file to run that SQL query . Also this file contain details of multiple... (2 Replies)
Discussion started by: jhon
2 Replies

3. Shell Programming and Scripting

perl script example to take password hiden and read from it

Hi, I am new to perl scripting Can you please let me know if you have an example on how to read the hidden password and read from it? Thanks, Mahesh (1 Reply)
Discussion started by: mum6ue
1 Replies

4. Shell Programming and Scripting

Read userid and password

Am reading userid and password. code: pmsg "Enter the userid \n" read userid pmsg "Enter password \n" read password pmsg "Enter Database name \n" read database When user type password, it a clear text. I want something like ******** or just a blank any suggestion plz... ... (2 Replies)
Discussion started by: ilugopal
2 Replies

5. Shell Programming and Scripting

sftp shell script - Password read error.

Hi, I have script which does the sftp function. In the script in one place it able to read the password from file and other place files with below error. warning: has much more security than supplying the password in the clear warning: on the command line. Failed to get password: File... (0 Replies)
Discussion started by: vino_hymi
0 Replies

6. Shell Programming and Scripting

loop to read multiple username and password

Hello all, I am i am trying to read username password. Bassicaly, i have file called sidlist and it has my database name, username and password.... looks something like this.... db1, user1, pass1 db2, user2, pass2 db3, user3, pass4 but i dont know how to make it work, until i get... (4 Replies)
Discussion started by: abdul.irfan2
4 Replies

7. UNIX for Dummies Questions & Answers

When reading a csv file, counter to read 20 lines and wait for minute then read next 20 till end

Hello All, i am a newbie and need some help when reading a csv file in a bourne shell script. I want to read 10 lines, then wait for a minute and then do a reading of another 10 lines and so on in the same way. I want to do this till the end of file. Any inputs are appreciated ... (3 Replies)
Discussion started by: victor.s
3 Replies

8. UNIX for Dummies Questions & Answers

password protect a CSV file: better solution than ZIP password?

Hi We send *.csv with sensitive data to our customers. Our customers open those files with Excel. A new requirement is that we password protect those CSV files. I thought to pack them with ZIP and assign a password to the archive. But Solaris 10 can't encrypt ZIP files. $ zip -P... (12 Replies)
Discussion started by: slashdotweenie
12 Replies

9. Shell Programming and Scripting

How to read userid and password information from txt file

Hi Experts, I am writing a shell script (for displaying disk space details) which is logging to 15 different servers using following command. ssh userid@servername It is prompting me for password for all 15 servers when I manually run it. However , soon I would like to schedule this script... (4 Replies)
Discussion started by: ajaypatil_am
4 Replies

10. Shell Programming and Scripting

Shell Script to Automatically Read My Password

I have a shell script to run set of commands every week . I dont have a root access on the server but I can run the commands using pbrun cat myscript.sh * * * pbrun command.... each time I run the script , it asks me for my password then it executes fine. ./myscript.sh Password... (7 Replies)
Discussion started by: Sara_84
7 Replies
printmgr(1M)						  System Administration Commands					      printmgr(1M)

NAME
printmgr - Solaris Print Manager is a graphical user interface for managing printers in a network SYNOPSIS
/usr/sadm/admin/bin/printmgr DESCRIPTION
Solaris Print Manager is a Java-based graphical user interface that enables you to manage local and remote printer access. This tool can be used in the following name service environments: LDAP, NIS, NIS+, and files. You must be logged in as superuser to use this tool. Using Solaris Printer Manager is the preferred method for managing printer access because Solaris Print Manager centralizes printer infor- mation when it is used in a name service environment. Adding printer information to a name service makes access to printers available to all systems on the network and generally makes printer administration easier because all the information about printers is centralized. Solaris Print Manager may be run on a remote system with the display sent to the local system. See the System Administration Guide: Advanced Administration for instructions on setting the DISPLAY environment variable. Using Solaris Print Manager to perform printer-related tasks automatically updates the appropriate printer databases. Solaris Print Manager also includes a command-line console that displays the lp command line for the add, modify, and delete printer operations. Errors and warn- ings may also be displayed when Printer Manager operations are performed. Help is available by clicking the <Help> button. USAGE
Solaris Print Manager enables you to do the following tasks: Select a Name Service Select a name service for retrieving or changing printer information. Add Access to a Printer Add printer access on a printer client using Solaris Print Manager. Add an Attached Printer After physically attaching the printer to a system, use Solaris Print Manager to install a local printer and make it available for printing. Add a Network Printer After physically attaching the printer to a system, use Solaris Print Manager to install a local printer and make it available for printing. Modify Printer Properties After adding access to a printer or adding an attached or network printer, you can modify certain printer attributes. Delete a Printer Delete access to a printer from the print client or delete a printer from the print server or from the name service environment. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWppm | +-----------------------------+-----------------------------+ SEE ALSO
ldap(1), lpget(1M), lpset(1M), attributes(5) System Administration Guide: Advanced Administration for information on LDAP server replication. Although users can use the LDAP command line utilities ldapadd(1) and ldapmodify(1)to update printer entries in the directory, the pre- ferred method is to use lpset. Otherwise, if the lpadd and lpmodify utilities are used, the administrator must ensure that the printer-name attribute value is unique within the ou=printers container on the LDAP server. If the value is not unique, the result of modifications done using lpset or the Solaris Print Manager, printmgr(1M) may be unpredictable. SunOS 5.10 23 May 2003 printmgr(1M)
All times are GMT -4. The time now is 06:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy