Back to Four Js Website
Four Js Customer Forum
Subscribe for automatic updates:
RSS
Sign in for full access
|
Help
Four Js Development Tools Forum
>
General
>
General Discussion
>
flmprg runnig as cron job creates empty output
Most recent posts
Pages: [
1
]
« previous
next »
Reply
|
Print
Author
Topic: flmprg runnig as cron job creates empty output (Read 1408 times)
IT D.
Posts: 1
flmprg runnig as cron job creates empty output
«
on:
August 27, 2024, 10:45:42 pm »
I have a very small script that runs the following command and emails the resulting output to me.
flmprg -a info users > /home/tmp/users.log
When run manually from command line, this produces a simple text file of all currently logged in users utilizing a license.
When same command is run from a cron job, output is always blank, regardless of user executing cron. All users have write permission on output file.
Suggestions?
Roland W.
Posts: 22
Re: flmprg runnig as cron job creates empty output
«
Reply #1 on:
August 28, 2024, 01:20:29 pm »
Hi,
maybe your environment is missing. Have you tried to use
Code:
bash -l
(see
https://stackoverflow.com/a/51591762
) to run your command?
This tutorial
https://www.baeldung.com/linux/load-env-variables-in-cron-job
may also be interesting about to properly set the environment in cron jobs.
Kind regards
Roland
Pages: [
1
]
Reply
|
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Discussion
=> Ask Reuben
=> WWDC21
-----------------------------
Discussions by product
-----------------------------
=> Products announcements
=> Genero BDL
=> GWS
=> GAS and GBC
=> GDC
=> Genero Mobile for Android or iOS
=> Genero Studio
=> Reporting tools (GRW, GRE)
-----------------------------
Jobs
-----------------------------
=> Jobs
Powered by SMF 1.1.21
|
SMF © 2015, Simple Machines
Loading...