Make a new .h file and place it in the same folder you put your non-UI macro files. Copy the following code and paste within this .h file.
// start
extern "C"
{
int system(const char*);
}
void backup()
{
const char* bcommand = stringf("
/Volumes/VFX/Shake/SHAKE_FILES/macros/nreal/include/bashScripts/./backup.sh %s",
NRiScript1.scriptName
);
system(bcommand);
}
// end
This above piece of code is launching a defined bash script and passing the location and name of the current shake script to this bash script. The variable can be accessed using $1 within the bash script!
also what you should do is create a custom menu within shake that you can use to launch these commands!
timWalker