Hi I have the following method which when triggered should run a command in Git Bash.
function convert($tmpName, $fileName, $fileSize, $fileType){
}
The command will be something like this:
pyang -f yin -o H:\\YangModels\\yin\\ietf-inet-types.yin ietf-inet-types.yang
I was looking at shell commands here but don't know if this relates to Git Bash or not.
Just looking for a way to run commands in Git Bash when a PHP method runs, thanks.
The command has to be run through Git Bash it will not work through the normal command line or Windows shell.
Edit: Been looking into it more and found a command that could be similar to what I need. The user seems to be trying to run his command through cygwin, trying to specify mine to target git bash but haven't figured it out yet.
$result = shell_exec('C:/cygwin/bin/bash.exe /c --login -i git');