06-07-2023 10:58 PM
Good morning. I have to run a program without graphical interface created with Labview (version 2021 64 bit) every day at a certain hour under linux (opensuse). This program is very simple and creates a file containing a string. I created a crontab, but the program does not start or if it does, it does not create the file. I also created a crontab to schedule the execution of a program developed in C and this works correctly. Anyone can help me? Thanks!
06-08-2023 06:39 AM
Can you share the vi ? for version 2020 pls
06-09-2023 03:16 AM
Hi LVNinja,
it is a very simple vi. I attached pics of front panel and blocked diagram.
Thank you
06-09-2023 05:35 AM
I don't know about the intricacies of cron, but maybe it will help to get more debug strings out of your program.
If you can't get the STDOUT and STDERR, (see e.g. https://stackoverflow.com/questions/28067714/where-is-the-stdout-and-stderr-output-of-a-crontab-job), maybe you can use a socket:
At the terminal, open a listener with netcat
nc -l -p 1234
and in your program, send the debug output there
nc -l -p 1234
{"status":true,"code":1430,"source":"Write to Text File in Untitled 1<APPEND>\nhome\\pi\\log.txt"}