max-mapper / max-mapper/csv2html
Problem when executing from crontab
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 48
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
Script is working great from command line, but I can't make it work from the crontab :-(
I have tried to include it in a script where I would call it like this:
`source /etc/profile
source /root/.bashrc
source /root/.bash_profile
cd /usr/lib/node_modules/csv2html
export PATH="/usr/lib64/qt-3.3/bin:/opt/ansible/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/.fzf/bin:/root/bin"
export NODE_PATH=/usr/lib/node_modules/csv2html
/usr/bin/node /usr/bin/csv2html /var/www/html/backups/backup_failed.csv >/var/www/html/backups
/backup_failed.html 2>/tmp/failed.log`
Still no way to make it work, it shows
<!-- show nothing -->
instead of the csv data.
Regards,
Nicolas.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied /usr/bin/node /usr/bin/csv2html command under crontab with the listed PATH, NODE_PATH, working directory, input, and output paths. Compare the cron environment and generated HTML with an interactive shell run; done means the scheduled command includes the CSV data rather than an empty result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, shell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100