Skip to content

cmdv4-args and cmdv6-args options #736

@rmunn

Description

@rmunn

While trying to resolve #635 which I was running into (my Dynu IP was incorrectly getting set to 1.0.1.1), I tried adding this to my ddclient.conf file:

usev4=cmdv4, cmdv4='curl -fs http://ipv4.icanhazip.com/'

But ddclient tried to interpret that whole thing as a command: I got the error sh: line 1: curl -fs http://ipv4.icanhazip.com/: No such file or directory. I haven't found any documented way to pass arguments to the command specified in the cmdv4/cmdv6 options.

Obviously I can put together a one-liner get-ipv4.sh shell script that calls curl with appropriate arguments. But it would be nice to be able to specify a command and arguments via the cmdv4 and cmdv6 options, and not have to use the indirection of a shell script.

Would it be feasible to add cmdv4-args and cmdv6-args options to ddclient? Or is "just throw together a wrapper shell script" the intended resolution, similar to how cmd-skip was deprecated in favor of doing the parsing/filtering in a wrapper script?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions