I have this part of the script(bash) that worked absolutely fine until recently but it throws me an error with file not found when using $1 to give directory path. Only difference I know is it stopped working after we upgraded to rhel 7.
here is the part of the script:
MOUNTINST=/opt/mqm80_Inst1 $1/crtMQdir.ksh $MOUNTINST/bin 755 mqm $1/crtMQdir.ksh $MOUNTINST/logs 755 mqm $1/crtMQdir.ksh $MOUNTINST/java/lib/soap 755 mqm
I am in the right directory path and also made sure the file exists:
/var/mqm/trace/WMQUNX8000.02] $ ll *crt* -rwxr-xr-x. 1 mqm mqm 826 Apr 10 2014 crtMQdir.ksh
Here is the error I get:
./test5.sh: line 4: /crtMQdir.ksh: No such file or directory ./test5.sh: line 6: /crtMQdir.ksh: No such file or directory ./test5.sh: line 8: /crtMQdir.ksh: No such file or directory
Am I missing something ?