Tue Dec 21 08:43:40 PST 2004
- Previous message: [Slony1-general] <stdin>:5: ERROR: syntax error at or near echo
- Next message: [Slony1-general] <stdin>:5: ERROR: syntax error at or near echo
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
j a ?crit : > > 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'; > > 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_ Hi, I would have said you can't do an echo statement within a slonik script. But that wouldn't explain why the second echo statement doesn't make the script fall into error. AFAIC, I have never made slonik work with an echo statement in it. S at S
- Previous message: [Slony1-general] <stdin>:5: ERROR: syntax error at or near echo
- 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