Comments (2)
Hey chivakaa,
Thanks for your complement and interest in the project.
I'm looking at your suggestion and wondering if the best route is to implement your auto-discovery, or to simply set those paths to variables at the top of the script.
If I implement auto-discovery, I'm using binaries to do it (which and awk in your example)
Is there a reason a system's cron can't find curl, but can find awk or which?
This solution needs to work for everyone.
Thanks in advance for any more thoughts you have on this.
- Sean
from route53-dynamic-dns-with-lambda.
Hi Sean,
Running script from cron could fail if cron does not load PATH environments where commands / binaries are placed. For instance my root cron has these environments:
HOME=/root
LOGNAME=root
PATH=/usr/bin:/bin
LANG=en_GB.UTF-8
SHELL=/bin/sh
PWD=/root
and because of that some commands are not found and scripts without absolute path can fail. From my point of view at least two possible options to solve the issue:
- Place all absolute paths for commans inside of scripts invoqued from cron
- Place PATH definition header on cron (like: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
I hope these info can helps!
from route53-dynamic-dns-with-lambda.
Related Issues (20)
- Lambda function HOT 2
- dynamodb billing mode HOT 2
- Placing an action within a variable that gets redefined HOT 2
- Pass the hash attack HOT 3
- Python3: AWS stack creation fails HOT 7
- Error from /var/task/index.py:213 - KeyError on lock_record HOT 1
- Docker container for client HOT 1
- Feature: ddclient Config HOT 1
- Using mulltiple Route53 hostedzone IDs HOT 1
- IP not beeing updated via route53-ddns-client.sh HOT 1
- Please update this repo to the latest versions HOT 2
- CDK Deploy Fails to create dyndnsfn..... HOT 5
- Error with Lambda Runtime PYTHON_3.11 HOT 2
- missing boto3 from requirements.txt HOT 1
- fresh cloud9 amazon linux missing shasum HOT 2
- previous version supported using internal IP addressing HOT 7
- Some requests are base64 encoded, breaking the function HOT 5
- Can't delete cloudformation stack created by this cloud9 project HOT 2
- To low timeout on Lambda HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from route53-dynamic-dns-with-lambda.