LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

crontab

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!

0 Kudos
Message 1 of 4
(817 Views)

Can you share the vi ? for version 2020 pls

0 Kudos
Message 2 of 4
(775 Views)

Hi LVNinja,

it is a very simple vi. I attached pics of front panel and blocked diagram.

Thank you

 

Download All
0 Kudos
Message 3 of 4
(746 Views)

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

LLindenbauer_0-1686306806423.png

 

nc -l -p 1234
{"status":true,"code":1430,"source":"Write to Text File in Untitled 1<APPEND>\nhome\\pi\\log.txt"}

 

0 Kudos
Message 4 of 4
(727 Views)