I have a bash script (a very basic one) that is called with system()
from a c program.
This scirpt calls another script called ./dslite.sh
which flashes firmware to a device.
How could I return the value returned by ./dslite.sh
to the c program?
C program:
system("flash_firmware.sh");
Script
#!/bin/bash
./dslite.sh --mode flash --config=~/configs/device1_config/c1dut2.ccxml ~/images/$1