Re: [analog-help] commandline parameters

2001-02-01 Thread Jeremy Wadsack



Rainer Fuegenstein wrote:

 Jeremy Wadsack wrote:
 
 I just realized that Analog should support non-quote delimiters. Try this:
 
 SERVERNAME="+C(HOSTNAME $SITE)"
 SERVERURL="+C(BASEURL http://$SITE)"
 
 well 
 
 +C(HOSTNAME www.example.at)
 +C(BASEURL http://www.example.at)
 
 /opt/analog/analog: analog version 4.13/Unix
 /opt/analog/analog: Warning C: Unknown configuration command: ignoring
 it:
   (HOSTNAME

Rainer,

I don't know if you ever figured this out, but this works for me:

#!/bin/sh

SITE="www.domain.com"
LOGFILE="$SITE.log"
OUTFILE="$SITE.html"

SERVERNAME="+C\"HOSTNAME $SITE\""
SERVERURL="+C\"BASEURL http://$SITE\""

/opt/analog/analog $SERVERNAME $SERVERURL $LOGFILE \ $OUTFILE


-- 

Jeremy Wadsack
Wadsack-Allen Digital Group


This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/analog-help@lists.isite.net/




Re: [analog-help] commandline parameters

2001-01-30 Thread Rainer Fuegenstein

Jeremy Wadsack wrote:
 
 No it's a shell quoting problem. Try this variant:
 
 SERVERNAME=+C\"HOSTNAME $SITE\"
 SERVERURL=+C\"BASEURL http://$SITE\"

now that I see it it looks obvious, but now I get:

./proclogs.sh: www.example.at": command not found
./proclogs.sh: http://www.example.at": No such file or directory

and $SERVERNAME and $SERVERURL are empty.

This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/analog-help@lists.isite.net/




Re: [analog-help] commandline parameters

2001-01-30 Thread Rainer Fuegenstein

Jeremy Wadsack wrote:
 
 SERVERNAME=+C\"HOSTNAME $SITE\"
 SERVERURL=+C\"BASEURL http://$SITE\"

Sorry for spamming this list with wrong guesses. I had another idea, but
this one also doesn't work:

 SERVERNAME="+C\"HOSTNAME $SITE\""  
 SERVERURL="+C\"BASEURL http://$SITE\""  


results in:

+C"HOSTNAME www.example.at"
+C"BASEURL http://www.example.at"

/opt/analog/analog: analog version 4.13/Unix
/opt/analog/analog: Warning C: Unknown configuration command: ignoring
it:
  "HOSTNAME
/opt/analog/analog: Warning C: Unknown configuration command: ignoring
it:
  "BASEURL
/opt/analog/analog: Warning F: Failed to open logfile www.example.at":
ignoring
  it
/opt/analog/analog: Warning F: Failed to open logfile
http://www.example.at":
  ignoring it

This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/analog-help@lists.isite.net/




Re: [analog-help] commandline parameters

2001-01-30 Thread Jeremy Wadsack

Rainer Fuegenstein wrote:

 Sorry for spamming this list with wrong guesses. I had another idea, but
 this one also doesn't work:
 
  SERVERNAME="+C\"HOSTNAME $SITE\""  
  SERVERURL="+C\"BASEURL http://$SITE\""  


I just realized that Analog should support non-quote delimiters. Try this:

#!/bin/sh

SITE="www.domain.com"
LOGFILE="$SITE.log"
OUTFILE="$SITE.html"

SERVERNAME="+C(HOSTNAME $SITE)"
SERVERURL="+C(BASEURL http://$SITE)"

/opt/analog/analog $SERVERNAME $SERVERURL $LOGFILE \ $OUTFILE

-- 

Jeremy Wadsack
Wadsack-Allen Digital Group


This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/analog-help@lists.isite.net/




Re: [analog-help] commandline parameters

2001-01-30 Thread Rainer Fuegenstein

Jeremy Wadsack wrote:

 
 I just realized that Analog should support non-quote delimiters. Try this:
 
 SERVERNAME="+C(HOSTNAME $SITE)"
 SERVERURL="+C(BASEURL http://$SITE)"

well 

+C(HOSTNAME www.example.at)
+C(BASEURL http://www.example.at)

/opt/analog/analog: analog version 4.13/Unix
/opt/analog/analog: Warning C: Unknown configuration command: ignoring
it:
  (HOSTNAME
/opt/analog/analog: Warning C: Unknown configuration command: ignoring
it:
  (BASEURL
/opt/analog/analog: Warning F: Failed to open logfile www.example.at):
ignoring
  it
/opt/analog/analog: Warning F: Failed to open logfile
http://www.example.at):
  ignoring it

This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/analog-help@lists.isite.net/




Re: [analog-help] commandline parameters

2001-01-29 Thread Jeremy Wadsack

Rainer Fuegenstein wrote:

 excerpt from the script:
 
 #!/bin/sh
 
 SITE="something figured out from other configfiles
 LOGFILE="$SITE.log"
 OUTFILE="$SITE.html"
 
 SERVERNAME=+C'"HOSTNAME '$SITE'"'  
 SERVERURL=+C'"BASEURL 'http://$SITE'"'
 
 /opt/analog/analog $SERVERNAME $SERVERURL $LOGFILE  $OUTFILE

...


 but analog reports:
 
 /opt/analog/analog: Warning C: Unknown configuration command: ignoring
 it:
   "HOSTNAME

It's not parsing the quotes right, as you suspected. Try these:

SERVERNAME='+C"HOSTNAME $SITE"'  
SERVERURL='+C"BASEURL http://$SITE"'
or maybe even just

SERVERNAME=+C"HOSTNAME $SITE"
SERVERURL=+C"BASEURL http://$SITE"

-- 

Jeremy Wadsack
Wadsack-Allen Digital Group


This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/analog-help@lists.isite.net/




Re: [analog-help] commandline parameters

2001-01-29 Thread Rainer Fuegenstein

Jeremy Wadsack wrote:
 
 It's not parsing the quotes right, as you suspected. Try these:
thanks for the hints, but ...
 
 SERVERNAME='+C"HOSTNAME $SITE"'
 SERVERURL='+C"BASEURL http://$SITE"'
... this results in $SITE not being resolved:

+C"HOSTNAME $SITE.oesv.at"
+C"BASEURL http://$SITE.oesv.at"
/opt/analog/analog: analog version 4.13/Unix
/opt/analog/analog: Warning C: Unknown configuration command: ignoring
it:
  "HOSTNAME
/opt/analog/analog: Warning C: Unknown configuration command: ignoring
it:
  "BASEURL
/opt/analog/analog: Warning F: Failed to open logfile $SITE.oesv.at":
ignoring
  it
/opt/analog/analog: Warning F: Failed to open logfile
http://$SITE.oesv.at":
  ignoring it


 SERVERNAME=+C"HOSTNAME $SITE"
 SERVERURL=+C"BASEURL http://$SITE"

results in:

+CHOSTNAME oesv.oesv.at
+CBASEURL http://oesv.oesv.at
/opt/analog/analog: analog version 4.13/Unix
/opt/analog/analog: Warning C: Not enough arguments for configuration
command:
  ignoring it:
  HOSTNAME
/opt/analog/analog: Warning C: Not enough arguments for configuration
command:
  ignoring it:
  BASEURL
/opt/analog/analog: Warning F: Failed to open logfile oesv.oesv.at:
ignoring
  it
/opt/analog/analog: Warning F: Failed to open logfile
http://oesv.oesv.at:
  ignoring it

maybe this is really a bug in analog ?
 
--
CoCo Software Engineering GmbH  [EMAIL PROTECTED]
Margaretenstrasse 22/9  Tel. ++43-1-5852300
1040 Wien   FAX  ++43-1-5852300-11
--

This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/analog-help@lists.isite.net/




Re: [analog-help] commandline parameters

2001-01-29 Thread Jeremy Wadsack

Rainer Fuegenstein wrote:

 SERVERNAME=+C"HOSTNAME $SITE"
 SERVERURL=+C"BASEURL http://$SITE"
 
 
 results in:
 
 +CHOSTNAME oesv.oesv.at
 +CBASEURL http://oesv.oesv.at
 /opt/analog/analog: analog version 4.13/Unix
 /opt/analog/analog: Warning C: Not enough arguments for configuration
 command:
   ignoring it:
   HOSTNAME
 /opt/analog/analog: Warning C: Not enough arguments for configuration
 command:
   ignoring it:
   BASEURL
 /opt/analog/analog: Warning F: Failed to open logfile oesv.oesv.at:
 ignoring
   it
 /opt/analog/analog: Warning F: Failed to open logfile
 http://oesv.oesv.at:
   ignoring it
 
 maybe this is really a bug in analog ?

No it's a shell quoting problem. Try this variant:

SERVERNAME=+C\"HOSTNAME $SITE\"
SERVERURL=+C\"BASEURL http://$SITE\"

-- 

Jeremy Wadsack
Wadsack-Allen Digital Group


This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/analog-help@lists.isite.net/