When I do ftp host, I always get prompted for username, and once I type that in I get prompted for password. But when I try doing it from here document it freezes.
Hi.. Does anybody knows how can I split a file in N documents?? I have a document of more than 80,000 lines (it is generated in a dynamic way, sometimes has 80,000 others 30,000 , or 1000,000) Im trying tyo break this file in only 1 lines of commands but I want to break it in a N differents files... (2 Replies)
I understand that a Here Document will redirect all of the lines between the beginning marker for the here document and the ending marker into the command specified just as if the text were coming from standard input.
I am trying to understand the Here Document with this example:
# Menu file... (3 Replies)
Hello,
I want to know the use of the here document with the << operator.
Tried to go through some books but the concept was not clear.
Please can any1 expalin me this with a simple example.
Thanks,
Rahul. (6 Replies)
Hi :)
how can I use here doc to use ssh?
I am facing a problem with the below script:
#!/bin/bash
ssh hosein@localhost << *
123456
*
"123456" is my password
Thanks (2 Replies)
Plz can somebody give me the shell and perl scripting documents,i need to start the scrpts learning.now i know about the linux commands,but need help in putting the same in the scripting with do,if,while and also using diffrent commands in the scrpipts,pls help.. (3 Replies)
Here is my problem: can we set the variables in the HERE DOCUMENT? I have tried but failed. Any one has good comments please let me know.
#!/bin/csh -f
pbrun -u xmgbrk runshell <<!
@ $num1 = `wc -l /home/tpltp/csh/scripts/who.csh`
echo "$num1"
if ( $num1 > 0 ) then
echo $num1 | tee -a... (1 Reply)
Can we use a here document inside a here document?
Something like this
ssh user@remotehost << REMOTE
sudo vserver vsernamename enter << VSERVER
perform actions on vserver.
VSERVER
REMOTE (6 Replies)
Have a sudo statement inside of a here document. It prompts me for a password, but doesnt wait for me to enter my password. Is there a way I can use the command without sudo or anyway that I can enter the password correctly?
Eg :
while read remotehost
do
ssh -t $2@$remotehost <<REMOTE... (13 Replies)
I have code like
var="1"
echo << EOF
export `var="2"`
EOF
echo $var
The value of var is printed here is 1 but it should be 2
Any error there?
---------- Post updated at 11:44 AM ---------- Previous update was at 10:33 AM ----------
Also tried
var="1"
echo var << EOF
echo... (1 Reply)
H Forum,
I was thankful in getting help from this post that allowed me to connect to multiple severs at once using here documents to gather data into variables. But I've discovered that the same bash command that works on my RHEL 7 servers do not work on RHEL 6? What's strange about my... (4 Replies)
Discussion started by: greavette
4 Replies
LEARN ABOUT CENTOS
crm_attribute
PACEMAKER(8) System Administration Utilities PACEMAKER(8)NAME
Pacemaker - Part of the Pacemaker cluster resource manager
SYNOPSIS
crm_attribute command -n attribute [options]
DESCRIPTION
crm_attribute - Manage node's attributes and cluster options.
Allows node attributes and cluster options to be queried, modified and deleted.
OPTIONS
-?, --help
This text
-$, --version
Version information
-V, --verbose
Increase debug output
-q, --quiet
Print only the value on stdout
-n, --name=value
Name of the attribute/option to operate on
Commands:
-G, --query
Query the current value of the attribute/option
-v, --update=value
Update the value of the attribute/option
-D, --delete
Delete the attribute/option
Additional Options:
-N, --node=value
Set an attribute for the named node (instead of a cluster option). See also: -l
-t, --type=value
Which part of the configuration to update/delete/query the option in. Valid values: crm_config, rsc_defaults, op_defaults, tickets
-l, --lifetime=value
Lifetime of the node attribute. Valid values: reboot, forever
-z, --utilization
Set an utilization attribute for the node.
-s, --set-name=value
(Advanced) The attribute set in which to place the value
-i, --id=value
(Advanced) The ID used to identify the attribute
-d, --default=value
(Advanced) The default value to display if none is found in the configuration
EXAMPLES
Add a new attribute called 'location' with the value of 'office' for host 'myhost':
# crm_attribute --node myhost --name location --update office
Query the value of the 'location' node attribute for host myhost:
# crm_attribute --node myhost --name location --query
Change the value of the 'location' node attribute for host myhost:
# crm_attribute --node myhost --name location --update backoffice
Delete the 'location' node attribute for the host myhost:
# crm_attribute --node myhost --name location --delete
Query the value of the cluster-delay cluster option:
# crm_attribute --type crm_config --name cluster-delay --query
Query the value of the cluster-delay cluster option. Only print the value:
# crm_attribute --type crm_config --name cluster-delay --query --quiet
AUTHOR
Written by Andrew Beekhof
REPORTING BUGS
Report bugs to pacemaker@oss.clusterlabs.org
Pacemaker 1.1.10-29.el7 June 2014 PACEMAKER(8)