12-22-2010
Let me make sure I understand everything correctly first. When you have variables within a function, they are local to that function correct? It will not have any affect on the variables within the main, right? So in my read_unbuffered() I'm using password[] and in my main I'm using codeMaker[]. These have no bearing on each other right?
10 More Discussions You Might Find Interesting
1. IP Networking
Is it possible for a internal LAN to mask a IP e.g. i have a server ip running the intranet ip being 192.168.0.8 and i want to make that like www.intranet.com is this possible on a internal network ? (1 Reply)
Discussion started by: perleo
1 Replies
2. Shell Programming and Scripting
Hello,
I need to know that whether a content of a string can be hidden or masked inside a shell script.
My Sample Code is given below
<Code>
#!/usr/bin/ksh
Userid=test
DB=temp
Passwd=`java Decryption test`
# The Above command will get the encryped password for "test" user id and store... (2 Replies)
Discussion started by: maxmave
2 Replies
3. Shell Programming and Scripting
I have a pipe delimited file that I need to 'mask' to before loading to keep some data confidential. I need to maintain the first 4 bytes of certain columns and replace the remaining bytes with an 'x'. I would like to maintain spaces but it's not a requirement.
Example, need to mask columns 2... (2 Replies)
Discussion started by: 1superdork
2 Replies
4. Emergency UNIX and Linux Support
BAT:0310:2009-08-0:Y4 :H:D:00003721:03103721.IFH:00138770:05767:00000000001279'
EXR:CLP:912.570000'
STA:A:9071559:2009-08-10::Wer::Mrs'
DEF::531.97:531.97:310221661617::+ABC:BAL:1:N::::5:40.00:0.00:2009-08-10:CN:1111111111109962::3:N:missc :N:PH:00010833:... (5 Replies)
Discussion started by: mad_man12
5 Replies
5. Shell Programming and Scripting
Hi,
I currently have a UNIX script with a function that uses a username and password to connect to the database, retrieve some information and then exit.
At the moment, am getting the username and password from a hidden plain text file and permission set to -r--------, i.e. read only to who... (1 Reply)
Discussion started by: newbie_01
1 Replies
6. Shell Programming and Scripting
Hi I am facing an issue with the below script which has the below line
each field being separated with a tab.
I need to mask the 8 and 7th field based on following conditions
1. 8th field is 16 in length and is numerics
i will mask the middle 6 digits except the first 6 and last 4.
input... (2 Replies)
Discussion started by: mad_man12
2 Replies
7. Shell Programming and Scripting
Is there a way to mask the password inside of a script to minimize the impact of a comprimised server? So
ssh -o "PasswordAuthentication no" -o "HostbasedAuthentication yes" -l testuser 192.168.3.1 "mysqldump --opt --all-databases -u root -pPassword| gzip" > $backup_dir/mysqldump.gz
a... (2 Replies)
Discussion started by: metallica1973
2 Replies
8. Shell Programming and Scripting
I have a requirement of masking few specific fields in the UNIX file. The details are as following-
File is fixed length file with each record of 250 charater length.
2 fields needs to be masked – the positions are 21:30 and 110:120
The character by character making needs to be done which... (5 Replies)
Discussion started by: n78298
5 Replies
9. UNIX for Dummies Questions & Answers
How Can I mask one particular columns using some unix command? (4 Replies)
Discussion started by: dsa
4 Replies
10. Shell Programming and Scripting
My file "test.dat" data as below
Requirement is to mask(replace) all english characters with "X" EXCEPT first 7 characters of every line.
my command
awk '{gsub("]","X")}1' test.dat
looks not working properly, Appreciate any suggestion... (6 Replies)
Discussion started by: JSKOBS
6 Replies
LEARN ABOUT SUSE
vlock-main
VLOCK-MAIN(8) Linux Programmer's Manual VLOCK-MAIN(8)
NAME
vlock-main - lock current virtual console
SYNOPSIS
vlock-main [plugins...]
DESCRIPTION
vlock-main is part of vlock(1), the Virtual Console locking program for Linux. It locks the current session and will only exit if the cur-
rent user can authenticate themselves. The root user will also be able to unlock the session, unless disabled at compile time. The com-
mand line arguments specify plugins that should be loaded by vlock-main. See vlock-plugins(5) for more information.
If plugin support is disabled at compile time, the only supported argument is "all".
ENVIRONMENT VARIABLES
The following environment variables can be used to change the behavior of vlock-main:
USER
If this variable is when vlock-main is run as root (uid 0) vlock locks the screen as this user instead of root. The root password
will still be able to unlock the session, unless disabled at compile time.
VLOCK_ALL_MESSAGE
If this variable is set and all consoles are locked its contents will be used as the locking message instead of the default message.
VLOCK_CURRENT_MESSAGE
If this variable is set and only the current consoles is locked its contents will be used as the locking message instead of the
default message.
VLOCK_MESSAGE
If this variable is set its contents will be used as the locking message instead of the default. This overrides the former two
variables.
VLOCK_TIMEOUT
Set this variable to specify the timeout (in seconds) after which the screen saver plugins (if any) will be invoked. If this vari-
able is unset or set to an invalid value or 0 no timeout is used. See vlock-plugins(5) for more information about plugins.
VLOCK_PROMPT_TIMEOUT
Set this variable to specify the amount of time (in seconds) you will have to enter your password at the password prompt. If this
variable is unset or set to an invalid value or 0 no timeout is used. Warning: If this value is too low, you may not be able to
unlock your session.
SIGNALS
Several signals are ignored. vlock-main will try to exit cleanly if SIGTERM is received.
SEE ALSO
vlock(1), vlock-plugins(5)
AUTHORS
Frank Benkstein <frank-vlock@benkstein.net>
Linux 28 July 2007 VLOCK-MAIN(8)