mapbox / mapbox/togeojson

How to execute togeojson in ubuntu cronjob

Open
#149 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.3k
Forks
322
PR merge metrics
No merged PRs in 30d

Description

I have added a cronjob on my ubuntu server
`* * * * * togeojson file.kml > file.geojson
`
But it does not seem to work with the cronjob.

I even tried adding the togeojson command into a shell file and run the shell file as a cronjob. It still fails. If I run it manually it works very well.

Any idea how to make togeojson work as expected when run by a cronjob ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the cron entry and the shell file described in the issue, comparing their execution context with the manual command that succeeds. Verify that togeojson produces file.geojson when run by cron, and document the required command or environment details.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, shell, ubuntu
Domain
cli, devops, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.