09-13-2017
How would those files be formatted? One server per line, a comma separated list in one line, ...?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm trying to write a shell script that has a menu and then dependant on the selection, will automate some samba file transfer.
The problem is when I run the code without the case statement it runs fine. but when I put the case statement in the only way I can get the code to run is to... (6 Replies)
Discussion started by: ianf
6 Replies
2. Shell Programming and Scripting
Hi All,
this small script is written to recognize user input character.. it is in small case .. upeer case or is a number... but when i input first capital letter say A.. it always gives small character.... what is the problem.
#!/bin/bash
echo "Enter the character"
read a
case $a in
)... (2 Replies)
Discussion started by: johnray31
2 Replies
3. Shell Programming and Scripting
In a case statement like below :
case $rental in
"car") echo "For $rental Rs.20 per k/m";;
"van") echo "For $rental Rs.10 per k/m";;
"jeep") echo "For $rental Rs.5 per k/m";;
"bicycle") echo "For $rental 20 paisa per k/m";;
*) echo "Sorry, I can not gat a $rental for you";;... (4 Replies)
Discussion started by: sriram003
4 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have a script like below :
#!/bin/ksh
echo "Do you want to export all docs ?"
read alld
echo "Do you want to export template or report only "
read temr
case && ]
#arguments
;;
case && ]
#arguments
;;
case && ]
#arguments
;; (4 Replies)
Discussion started by: luna_soleil
4 Replies
5. Shell Programming and Scripting
echo -e "Select: \c"
read IN
pattern="1-20"
case $IN in
)
echo "Selected: $IN"
;;
*)
echo "Invalid selection: $IN"
;;
esac
# sh test
Select: 10
Invalid selection: 10
# sh test
Select: 2 (6 Replies)
Discussion started by: Ikon
6 Replies
6. Shell Programming and Scripting
I'm in the process of writng a function that consists of a case statement is there a way of calling the function and passing a value to it?
ie
function1 () {
case
opt1 do .....
opt2 do.....
esac
}
function opt1
I'm aware the syntax is not correct, but you get the general idea. (1 Reply)
Discussion started by: squrcles
1 Replies
7. Shell Programming and Scripting
hi all
i am trying to get help with writing a script using case statement to display menu as
1) Authentication log
2) System log
3) Messages
4) Dmesg
5) Boot log
Q) Exit
When selecting the menu by 1 or 2 or 3 o 4 or 5, it should display the last 10 lines of the log files,
if... (3 Replies)
Discussion started by: renegade11
3 Replies
8. Shell Programming and Scripting
have written the below code to check whether the string received from user is a file name or dir using case statement, but its going into default case*).
#!/bin/sh
#Get a string from user and check whether its a existing filename or not
rm str2
rm str3
echo "enter a file \c"
read fil... (8 Replies)
Discussion started by: Mohan0509
8 Replies
9. Shell Programming and Scripting
Hi Gurus,
I have a very weird requirement and have no clue to resolve the issue. please help me get out this difficulty
below two tables, table1 contains the column name. D means this column used for the rule. for example: rule 0 is all columns have value, rule1 is col3 and col7 have no value.... (2 Replies)
Discussion started by: Torhong
2 Replies
10. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
This is what is asked:
If the user enters ‘3’, prompt the user for two file names. Verify that the file names... (2 Replies)
Discussion started by: cindy01
2 Replies
LEARN ABOUT SUNOS
update-connector-security-map
asadmin-update-connector-security-map(1AS) User Commands asadmin-update-connector-security-map(1AS)
NAME
asadmin-update-connector-security-map, update-connector-security-map - updates the security map for the named connector connection pool
SYNOPSIS
update-connector-security-map --user admin_user [--password admin_password][--host localhost] [--port 4848][--secure|-s] [--passwordfile
filename] [--terse=false] [--echo=false] [--interactive=true]
--poolname connector_connection_pool_name [--addprincipals principal-name[, principal-name]*]| [--addusergroups user-group[, user-group]*]
[--removeprincipals principal-name[, principal-name]* ] [--removeusergroups user-group[, user-group]*] [--mappedusername user_name]
[[--mappedpassword password]] mapname
Modifies a security map for the named connector connection pool. You must have first created a connector connection pool using the create-
connector-connection-pool command.
This command is supported in remote mode only.
OPTIONS
--user authorized domain application server administrative username.
--password password to administer the domain application server.
--host machine name where the domain application server is running.
--port port number of the domain application server listening for administration requests.
--secure if true, uses SSL/TLS to communicate with the domain application server.
--passwordfile file containing the domain application server password.
--terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-
formatted data for consumption by a script. Default is false.
--echo setting to true will echo the command line statement on the standard output. Default is false.
--interactive if set to true (default), only the required password options are prompted.
--poolname connector connection pool name for which the security map that is to be updated or created belongs to.
--addprincipals a comma separated list of backend EIS principals to be added.
--addusergroups a comma separated list of the enterprise information system usergroups to be added.
--removeprincipals a comma separated list of the enterprise information system principals to be removed.
--removeusergroups a comma separated list of the enterprise information system usergroups to be removed.
--mappedusername the enterprise information system username.
--mappedpassword the enterprise information system password.
OPERANDS
mapname name of the security map to be updated.
Example 1: Using update-connector-security-map
It is assumed that the connector pool has already been created using the create-connector-pool command.
asadmin> update-connector-security-map --user admin --password adminadmin
--poolname connector-pool1 --addprincipals principal1, principal2,
--addusergroups usergroup1, usergroup2 --removeprincipals principal3, principal4
--removeusergroups usergroup3, usergroup4 securityMap1
Command update-connector-security-map executed successfully
EXIT STATUS
0 command executed successfully
1 error in executing the command
asadmin-create-connector-security-map(1AS), asadmin-delete-connector-security-map(1), asadmin-list-connector-security-maps(1AS)
J2EE 1.4 SDK March 2004 asadmin-update-connector-security-map(1AS)