I want to send the C/C++ variable into my shell script, but tried many ways on the Internet, seems not working, could you help me with my code? C++ code:
void test::addroute(){
string test1=ip_address;
}
my shell script:
#!bin/sh
ip rule add from $test1 lookup $eth0_table
how to send the test1 to here?