Tue Dec 21 01:28:52 PST 2004
- Previous message: [Slony1-general] Slony installation
- Next message: [Slony1-general] <stdin>:5: ERROR: syntax error at or near echo
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Can someone tell my why this top script breaks with "<stdin>:5: ERROR:
syntax error at or near echo", but the bottom one works? Commenting out
that first echo makes the error go away.
THIS GIVES ERROR:
#!/bin/sh
slonik <<_EOF_
# ----
# This defines which namespace the replication system uses
# ----
cluster name = $CLUSTERNAME;
echo 'Cluster defined';
# ----
# Admin conninfo's are used by the slonik program to connect
# to the node databases. So these are the PQconnectdb arguments
# that connect from the administrators workstation (where
# slonik is executed).
# ----
node 1 admin conninfo = 'dbname=$MASTERDBNAME host=$MASTERHOST
user=$REPLICATIONUSER';
node 2 admin conninfo = 'dbname=$SLAVEDBNAME host=$SLAVEHOST
user=$REPLICATIONUSER';
echo 'Nodes identified';
# ----
# Uninstall both nodes
# ----
uninstall node (id=1);
echo 'Node 1 removed.';
uninstall node (id=2);
echo 'Node 2 removed.';
_EOF_
THIS WORKS:
#!/bin/sh
slonik <<_EOF_
# ----
# This defines which namespace the replication system uses
# ----
cluster name = $CLUSTERNAME;
#echo 'Cluster defined';
# ----
# Admin conninfo's are used by the slonik program to connect
# to the node databases. So these are the PQconnectdb arguments
# that connect from the administrators workstation (where
# slonik is executed).
# ----
node 1 admin conninfo = 'dbname=$MASTERDBNAME host=$MASTERHOST
user=$REPLICATIONUSER';
node 2 admin conninfo = 'dbname=$SLAVEDBNAME host=$SLAVEHOST
user=$REPLICATIONUSER';
echo 'Nodes identified';
# ----
# Uninstall both nodes
# ----
uninstall node (id=1);
echo 'Node 1 removed.';
uninstall node (id=2);
echo 'Node 2 removed.';
_EOF_
What is wrong with the echo 'Cluster defined'; statement?
- Previous message: [Slony1-general] Slony installation
- Next message: [Slony1-general] <stdin>:5: ERROR: syntax error at or near echo
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-general mailing list