php variable $hostname is undefined.
Replace
with
Assuming that you are using Apache as the web server, you can do the following:
Start an additional terminal window, and run "tail -f /var/log/apache2/error.log". You will get al running list of errors from your web development.
Hello everybody:
Im trying to run the following script on my sol9 machine:
line=''
((lineCount= 0))
export lineCount
more /tmp/MSISDNs | wc -l > /tmp/tmp
cat /tmp/tmp | read lineCount
export lineCount;
while (( lineCount > 0 ))
do
line= tail -$lineCount... (5 Replies)
I'm just not sure where to start looking into this. I want to be able to create switches for my script. Back in the day I'd make my scripts interactive...you know:
echo "what report do you want"
echo "A)boxes with errors"
echo "B)boxes with more than 5 errors"
echo "C)Service groups that have... (3 Replies)
Hi All,
I need to pass a variable to perl script from bash script, where in perl i am using if condition. Here is the cmd what i am using in perl
FROM_DATE="06/05/2008"
TO_DATE="07/05/2008"
"perl -ne ' print if ( $_ >="$FROM_DATE" && $_ <= "$TO_DATE" ) ' filename"
filename has... (10 Replies)
How do I pass a bash variable to a javascript?
I've tried
#!/bin/bash
echo "Content-type: text/html"
echo ""
echo "<html>"
echo "<head>"
counter=0
echo '<script>
window.parent.document.forms.counter.value = "$counter";
</script>'
I have an iframe script which I am trying to pass a... (3 Replies)
Hello,
How can I pass a variable into a 2nd file? I'm running a script:
ls -la $1 >pem99
cat pem99 | awk '{ print $3}' >us99
cat us99 | read us98
This then tells me the owner of a file.
my second file is:
echo OWNER GROUP OTHERS
echo
echo --data-- $us98
... (2 Replies)
Hello everyone,
I've been looking how to pass variables between bash and php-cli in 1 file. So far i got this:
#!/bin/bash
echo "This is bash"
php << EOF
<?php
echo "This is php\n";
?>
EOF
I would now like to be able to pass a variable declared in the bash to the php. I already... (0 Replies)
Would really appreciate it if someone could point out my mistake in this line of code, i've been staring blankly at it trying everything i can think of some time now and coming up with nothing.
#!/bin/bash
echo "Enter Username"
read Username
awk -F: -v var=${Username} '/^var:/... (9 Replies)
I'm trying to write a basic bash script that takes input you give (what directory, if any, what name, if any ....) and passes the information to find.
I'm trying to just create a string with all variables and then pass it to find. So far I have this extremely simple:
#!/bin/bash -f
... (2 Replies)
Hi,
I wanted to pass an argument to a bash script. So that the argument is used inside the awk command inside the bash script.
I know the noraml way of passing argument to a bash script as below :
sh myScript.sh abc
Inside the bash script i can use like this
myArg1=$1
wc $myArg
But... (8 Replies)
Hi All,
I need to pass a variable from bash script to perl script and in the perl script i am using those variables in the sql query but its giving
error :
Use of uninitialized value $ENV{"COUNTRYCD"} in concatenation (.) or string at /GIS_ROOT/custom/tables/DBread_vendor.pl line 50.
Can ... (6 Replies)
Discussion started by: NileshJ
6 Replies
LEARN ABOUT CENTOS
ipa-replica-prepare
ipa-replica-prepare(1) IPA Manual Pages ipa-replica-prepare(1)NAME
ipa-replica-prepare - Create an IPA replica file
SYNOPSIS
ipa-replica-prepare [OPTION]... hostname
DESCRIPTION
Generates a replica file that may be used with ipa-replica-install to create a replica of an IPA server.
A replica can only be created on an IPA server installed with ipa-server-install (the first server).
You must provide the fully-qualified hostname of the machine you want to install the replica on and a host-specific replica_file will be
created. It is host-specific because SSL server certificates are generated as part of the process and they are specific to a particular
hostname.
If IPA manages the DNS for your domain, you should either use the --ip-address option or add the forward and reverse records manually using
IPA plugins.
Once the file has been created it will be named replica-hostname. This file can then be moved across the network to the target machine and
a new IPA replica setup by running ipa-replica-install replica-hostname.
A replica should only be installed on the same or higher version of IPA on the remote system.
OPTIONS --dirsrv_pkcs12=FILE
PKCS#12 file containing the Directory Server SSL Certificate and Private Key
--http_pkcs12=FILE
PKCS#12 file containing the Apache Server SSL Certificate and Private Key
--dirsrv_pin=DIRSRV_PIN
The password of the Directory Server PKCS#12 file
--http_pin=HTTP_PIN
The password of the Apache Server PKCS#12 file
-p DM_PASSWORD, --password=DM_PASSWORD
Directory Manager (existing master) password
--ip-address=IP_ADDRESS
IP address of the replica server. If you provide this option, the A and PTR records will be added to the DNS.
--reverse-zone=REVERSE_ZONE
The reverse DNS zone to use
--no-reverse
Do not create reverse DNS zone
--ca=CA_FILE
Location of CA PKCS#12 file, default /root/cacert.p12
--debug
Prints info log messages to the output
EXIT STATUS
0 if the command was successful
1 if an error occurred
IPA Mar 14 2008 ipa-replica-prepare(1)