I'm trying to write a bash script to run on an Ubuntu system.
The idea is that the script needs to initialize ad lunch a C program. The C code creates a folder and stores data in it coming form an ADC, while it outputs the number of acquisitions.
What a would like to do is to return the name of the folder created in the code to the bash script to be able to copy it. The problem is that, for what I've understood, the code can return only an 8 bit INT, not a whole string. Also using fprint is not a solution because I need to print at screen the number of acquisitions, not only the name of the folder.
Any alternative solutions that I do not know about?