Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmdv4-args and cmdv6-args options #736

Open
rmunn opened this issue Aug 22, 2024 · 0 comments
Open

cmdv4-args and cmdv6-args options #736

rmunn opened this issue Aug 22, 2024 · 0 comments

Comments

@rmunn
Copy link

rmunn commented Aug 22, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant