Wed Sep 15 22:56:47 PDT 2004
- Previous message: [Slony1-commit] By wieck: Added functions to determine the current loaded slony schema.
- Next message: [Slony1-commit] By cbbrowne: Change broken regex
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message: ----------- Cause the "show args" to indicate that what it expects for the name of the SQL script is a full path name. Modified Files: -------------- slony1-engine/tools/altperl: slon_pushsql.pl (r1.3 -> r1.4) -------------- next part -------------- Index: slon_pushsql.pl =================================================================== RCS file: /usr/local/cvsroot/slony1/slony1-engine/tools/altperl/slon_pushsql.pl,v retrieving revision 1.3 retrieving revision 1.4 diff -Ltools/altperl/slon_pushsql.pl -Ltools/altperl/slon_pushsql.pl -u -w -r1.3 -r1.4 --- tools/altperl/slon_pushsql.pl +++ tools/altperl/slon_pushsql.pl @@ -10,13 +10,18 @@ $set = $1; } else { print "Invalid set identifier"; - die "Usage: ./slon_pushsql.pl set[N] node[N] sql_script_file\n"; + die "Usage: ./slon_pushsql.pl set[N] node[N] full_path_to_sql_script_file\n"; } if ($node =~ /^node(\d+)$/) { $node = $1; } else { print "Invalid node identifier"; - die "Usage: ./slon_pushsql.pl set[N] node[N] sql_script_file\n"; + die "Usage: ./slon_pushsql.pl set[N] node[N] full_path_to_sql_script_file\n"; +} + +if ($file !=~ /^\//) { + print "SQL script path needs to be a full path, i.e. /tmp/my_script.sql\n"; + die "Usage: ./slon_pushsql.pl set[N] node[N] full_path_to_sql_script_file\n"; } my $FILE="/tmp/gensql.$$";
- Previous message: [Slony1-commit] By wieck: Added functions to determine the current loaded slony schema.
- Next message: [Slony1-commit] By cbbrowne: Change broken regex
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list