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

w/o promt ? #7

Closed
Nuke142 opened this issue Feb 21, 2024 · 3 comments
Closed

w/o promt ? #7

Nuke142 opened this issue Feb 21, 2024 · 3 comments

Comments

@Nuke142
Copy link

Nuke142 commented Feb 21, 2024

./cf-dns.sh -d example.com -t A -n "*" -c 8.8.8.8
i want to use it with cron. how it can be executed without promt where i must press 1 button?

@tech-otaku
Copy link
Owner

@Nuke142

how it can be executed without promt where i must press 1 button?

Unfortunately it can't. See comment Don't wait for user input.

@Nuke142
Copy link
Author

Nuke142 commented Feb 22, 2024

Resolved by using yes
yes 1 | ./cf-dns.sh -d example.com -t A -n "*" -c 8.8.8.8

@tech-otaku
Copy link
Owner

yes 1 | ./cf-dns.sh -d example.com -t A -n "*" -c 8.8.8.8

This is fine if you only ever want to update the first matching record, which I assume is your use case. Others should be aware that by doing so there won't be the option to update any other matching records or add a new record.

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

2 participants