Here is my code to send read.txt to three servers.
This works and all the 3 servers gets the read.txt file.
However, after the thrid server's scp command is procesed it asks for the password. We login with user1 / password and then switch to admin user using the command sudo su - admin which does not ask for any password nor do we know off any password for admin user.
My job's done !! but i wish to somehow come out of the for loop so the rest of the unix script gets executed.
Last edited by mohtashims; 02-03-2014 at 12:11 PM..
how can i read input to quit any time, for instance "type q to quit"
I have a script like this
echo "The first choice"
read firstChoice
echo "The second choice"
read secondChoice
Looking for a code to quit any time by pressing q to quit
any help would be appreciated
thanks (5 Replies)
I am reading a file using While loop
while <FILE>
{
$_ = <FILE>;
process data...
}
I would like to quit reading the file once I encounter a String pattern. How do i do it.
is it
if (/SUMMARY/)
{
last;
}
I am having problems with uninitialized value in pattern... (1 Reply)
hi all,
I am facing problem in shell scripting while using exit command, when ever i run a file using . ./<filename>, when i run the sae script as sh <filename> the script does not close the windows. since my script has function calls i have to use . ./ <filename>.
Could any one tell me... (8 Replies)
I'm using a while loop with an if statement. When the user choses a number, it will display a list of files. That works, the problem is q for quit won't exit script. How can I fix this? (10 Replies)
I have a script that run several subscripts. I need to find out how to do two things. First I would like to check for a file and if that file is not there I want to quit the entire script without running the rest of the script which contain subscripts. If the file is there, I want it to continue... (1 Reply)
I want directly to move from WMToggle to bash, which command to type?
Now I need to type 3 times, :q! etc. any help? its very annoying to time something 3 times continuously :( (1 Reply)
Hi
I'm looking to write a simple ksh loop reading user input (and write it to a file) until the user enters QUIT at which point I want it to continue.
Does anyone have an example of this type of loop?
Any help much appreciated
Cheers (2 Replies)
Hmmm.
I cannot figure out where to disable this warning message in Safari.
Google says to disable something in Safari Tabs preferences but my Macs do not have that option in Mojave.
Anyone know how to disable the following so when I quit Safari it simply quits without the "freeze the... (12 Replies)
Discussion started by: Neo
12 Replies
LEARN ABOUT SUNOS
delete-admin-object
asadmin-delete-admin-object(1AS) User Commands asadmin-delete-admin-object(1AS)NAME
asadmin-delete-admin-object, delete-admin-object - removes the administered object with the specified JNDI name
SYNOPSIS
delete-admin-object --user admin_user [--password admin_password] [--host localhost] [--port 4848] [--secure|-s] [--passwordfile filename]
[--terse=false] [--echo=false] [--interactive=true] jndi_name
Removes the administered object with the specified JNDI name. 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.
OPERANDS
jndi_name JNDI name of the administered object to be deleted.
Example 1: Using delete-admin-object
The example listed in the add-admin-object command should be executed before attempting to execute this example:i
asadmin> delete-admin-objects --user admin --password admin123
jms/samplequeue
Deletes the previously created administration object with the JNDI name jms/sample.
EXIT STATUS
0 command executed successfully
1 error in executing the command
asadmin-create-admin-object(1AS), asadmin-list-admin-objects(1AS)J2EE 1.4 SDK March 2004 asadmin-delete-admin-object(1AS)