fix the issue that it has problem to handle the regular expression \s in rh/fedora

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9422 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2011-04-28 04:33:19 +00:00
parent b448aaf6e6
commit 67bf32985c

View File

@ -1,7 +1,7 @@
#!/usr/bin/awk -f
BEGIN {
if (ENVIRON["USEOPENSSLFORXCAT"]) {
server = "openssl s_client -quiet -connect " ENVIRON["XCATSERVER"] " 2> /dev/null"
server = "openssl s_client -connect " ENVIRON["XCATSERVER"] " 2> /dev/null"
} else {
server = "/inet/tcp/0/127.0.0.1/400"
}
@ -14,8 +14,15 @@ BEGIN {
print " <command>getpostscript</command>" |& server
print "</xcatrequest>" |& server
start = 0
while (server |& getline) {
print $0
if (match($0,"<xcatresponse>")) {
start = 1
}
if (start == 1) {
print $0
}
if (match($0,"<serverdone>")) {
quit = "yes"
}