[Ddclient-forum] [ ddclient-Bugs-1602440 ] -postscript unknown option
Brought to you by:
supersandro2000,
wimpunk
From: SourceForge.net <no...@so...> - 2008-12-31 16:50:26
|
Bugs item #1602440, was opened at 2006-11-24 20:55 Message generated for change (Comment added) made by pdelaage You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=676128&aid=1602440&group_id=116817 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Ragnar Jensen (ragnar42) Assigned to: wimpunk (wimpunk) Summary: -postscript unknown option Initial Comment: Using ddclient-3.7.0, with the "-postcript /path/to/my/command" option on the commandline, I got the error "Unknown option: postscript" With "postscript=/path/to/my/command" in ddclient.conf and no "-postscript ..." option on the command line, it seems to work. Digging into the code, I put the line [ "postscript", "=s", "-postscript command : run external command after updates" ], into @opt and now the -postscript command line option works. My config: daemon=3600 syslog=yes mail=root mail-failure=root pid=/var/run/ddclient.pid ssl=yes login=mylogin password=mypassword wildcard=yes server=members.dyndns.org, \ protocol=dyndns2 \ jensen.selfip.org ---------------------------------------------------------------------- Comment By: Pierre DELAAGE (pdelaage) Date: 2008-12-31 17:50 Message: Using version 3.7.3 on Mandriva 2008 : That is a fact that the option is NOT supported on the command line, although it should according to the documentation here : http://ddclient.wiki.sourceforge.net/Usage. Note that it should also be documented on the --help command line option : presently this option help is missing. As a helper it should appear as a comment in the sample conf files. Maybe a recommendation about possible conflict between current shell quoting rules and command line interpretation by the script should be useful to users. As far as I can tell the code submitted by ragnar42 is correct. Tip: the option works as a global option in the ddclient.conf file. It is typically very useful to update some firewall rules. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=676128&aid=1602440&group_id=116817 |