Sponsored Content
Top Forums Shell Programming and Scripting How to hide password in shell script? Post 303003885 by RudiC on Friday 22nd of September 2017 06:08:35 AM
Old 09-22-2017
My DB days are gone for quite long time, and my sql has corroded away, but as far as I recall, sqlldr is an independent command of its own and thus should not occur in the input stream of sqlplus, i.e. it should disappear from the "here document"?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Hide code in shell script???

Hello, I am very new to Unix so I want to apologize in advance in case my question is stupid. I wrote a KORN script that I am planning to distribute to many users. This script contains sensitive information that the users should not see: user name and password to our database servers with... (11 Replies)
Discussion started by: alan
11 Replies

2. Programming

hide password typing

I am doing a project in C program which requires to type in password in Unix terminal. Does anybody know how to shade or not output any words typed by user in the terminal? I use the function scan() to read typing from user. Thanks in advance. (2 Replies)
Discussion started by: ivancheung
2 Replies

3. Shell Programming and Scripting

How to hide password on Linux?

Hi falks, I have the following ksh code: echo "Enter VS Admin password:" oldstty=`stty -g` stty -echo intr '$-' read password stty $oldstty echo This code ask from a user to enter his password. The OS suppose to hide the entering of the... (2 Replies)
Discussion started by: nir_s
2 Replies

4. Shell Programming and Scripting

How to hide user inputted text for interactive unix shell script?

Hi everybody, Do you know how to hide the text for interactive unix shell script? Just like the case for inputting password during logon. Patrick (1 Reply)
Discussion started by: patrickpang
1 Replies

5. Shell Programming and Scripting

Want to hide password

All, In my script I am calling another script.. in that script I need to enter a password. Problem is that everyone is able to see the password when I enter that. Is there any way that when i enter that password it should not display or may look like *******. Or if there any other way that I... (1 Reply)
Discussion started by: arpitk
1 Replies

6. Shell Programming and Scripting

How Do I Hide the Password in a Script

Hi, I am writing a UNIX .ksh script and need to send the login password of the login id that is executing the script to a command that I am executing in the script. I don't want that password to be seen by anyone except whoever is executing the script. Does anyone know how I can accomplish... (6 Replies)
Discussion started by: samd
6 Replies

7. UNIX for Dummies Questions & Answers

How can i hide username/password

hi all, i run sqlplus command on unix(HP-UX) like "sqlplus username/password@serverA @deneme.sql" but when someone run "ps -ef | grep sqlplus", it can see my username and password :( How can i hide username and password. thanx. (1 Reply)
Discussion started by: temhem
1 Replies

8. Shell Programming and Scripting

Best way to hide password in bash script?

Dear folks, The title of my thread says mostly all of what I want to do. Basically I want to auto-ssh to a remote host, and run a program on it (VLC is just an example). I wrote a script which calls xterm and then runs expect on it. The code is as follow #!/bin/bash export PASS="xxxxxxx"... (22 Replies)
Discussion started by: dukevn
22 Replies

9. Shell Programming and Scripting

How to hide/encrypt password in script?

Hi I have following problem Im writing a script (in bash ) , where need to be written login & passwd for databas client . Its need to in following form login passwd@dbhostname . The problem is so anybody can read it so the passwd & login are visible and thats not very safety . Can... (8 Replies)
Discussion started by: kvok
8 Replies

10. Shell Programming and Scripting

Expect Script - Hide password from process table

i have an expect script that runs like this: /usr/bin/expect -f /home/skysmart/commandstoexecute.sh host2.net b$4aff Skysmart when i run this command, and i do a ps -ef and egrep for expect, i see the exact line in the process table and it shows my password for the world to see. how can i... (2 Replies)
Discussion started by: SkySmart
2 Replies
fgetpos(3S)															       fgetpos(3S)

NAME
fgetpos(), fsetpos() - save and restore a file position indicator for a stream SYNOPSIS
DESCRIPTION
Store the current value of the file position indicator for the stream pointed to by stream in the object pointed to by pos. The value stored contains information usable by for repositioning the stream to its position at the time of the call to Set the file position indicator for the stream pointed to by stream according to the value of the object pointed to by pos, which must be a value set by an earlier call to on the same stream. A successful call to clears the end-of-file indicator for the stream and undoes any effects of ungetc(3S) on the same stream. After a call, the next operation on a update stream can be either input or output. RETURN VALUE
If successful, these functions return zero; otherwise non-zero. ERRORS
If fails, is set to one of the following values. [EINVAL] The current value of the file position cannot be represented correctly in an object of size in this environment. Additional values may be set by the underlying function (see fseek(3S)). WARNINGS
Failure can occur if these functions are used on a file that has not been opened via In particular, they must not be used on a terminal or on a file opened via popen(3S). has no effect on streams that are open for append (see fopen(3S)). SEE ALSO
fgetpos64(3S), fseek(3S), fopen(3S), popen(3S), ungetc(3S), thread_safety(5), glossary(9). STANDARDS CONFORMANCE
fgetpos(3S)
All times are GMT -4. The time now is 09:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy