Custom Script and Shared Object
Write your custom script:
#!/bin/bash
echo "Running custom script..."
echo "Hello, world!"Create a C wrapper function:
// wrapper.c
#include <stdlib.h>
void run_custom_script() {
system("./custom_script.sh");
}Compile the source code:
Use the shared object:
Last updated