I am trying to execute code in a perl script and you need to call another file in bash. Not sure if this is the best way to do this? can i directly call it with system ()? Please guide / show me an example.
from what I've tried so far:
system("bash bashscript.sh");
Bash:
#!/bin/bash
echo "cdto codespace ..."
cd codetest
rm -rf cts
for sufix in a o exe ; do
echo ${sufix}
find . -depth -type f -name "*.${sufix}" -exec rm -f {} \;
done
I get an error while executing a perl script: There is no such file or directory.
syntax error near unexpected do token
source
share