# Julia script using zmq works run from cli but NOT from cronjob

**URL:** https://discourse.julialang.org/t/julia-script-using-zmq-works-run-from-cli-but-not-from-cronjob/80447
**Category:** General Usage
**Tags:** zmq, linux, cron
**Created:** [May 3, 2022, 9:00pm UTC](https://discourse.julialang.org/t/julia-script-using-zmq-works-run-from-cli-but-not-from-cronjob/80447 "2022-05-03T21:00:58Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![ImreSamu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/imresamu/32/20677_2.png) [@ImreSamu](https://discourse.julialang.org/u/ImreSamu)
#### Post date: [May 3, 2022, 11:14pm UTC](https://discourse.julialang.org/t/julia-script-using-zmq-works-run-from-cli-but-not-from-cronjob/80447/7 "2022-05-03T23:14:25Z")

</div>

ok…

check this post

> [@Running a specific julia environment from a crontab](https://discourse.julialang.org/t/running-a-specific-julia-environment-from-a-crontab/58799):
>
> Hi there. My goal is to run a Julia script from crontab. For this I need to be able to activate the correct Julia environment from the command line. I’m not sure how to do this. A possible solution I’ve found is to add code to the startup.jl such as: using Pkg if isfile("Project.toml") && isfile("Manifest.toml") Pkg.activate(".") end Is this an appropriate/best solution?

and add a project path :  
`julia --project=/path/to/your/project/folder /path/to/your/script.jl > /path/to/your/output.txt `

---

_[View the full topic](https://discourse.julialang.org/t/julia-script-using-zmq-works-run-from-cli-but-not-from-cronjob/80447)._
