jtp51
asked on
I keep getting this at stdout "mkdir: usage: mkdir [-m mode] [-p] dirname ..."
This is really odd.
I keep receiving the following line at stdout:
"mkdir: usage: mkdir [-m mode] [-p] dirname ..."
I have the following in my Korn Shell script:
if [[ ! -d $JOB_DIR ]]; then
mkdir -p "$JOB_DIR"
fi
I tried the mode parameter, but still get this message.
Thoughts or suggestions on how to get rid of this message is greatly appreciated.
Thanks,
--Todd
I keep receiving the following line at stdout:
"mkdir: usage: mkdir [-m mode] [-p] dirname ..."
I have the following in my Korn Shell script:
if [[ ! -d $JOB_DIR ]]; then
mkdir -p "$JOB_DIR"
fi
I tried the mode parameter, but still get this message.
Thoughts or suggestions on how to get rid of this message is greatly appreciated.
Thanks,
--Todd
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ahoffmann: Thanks... sorry guys, I had echoed the variable before and saw a value; however I had made more changes since.
echo "dir: $JOB_DIR"
before the mkdir and I think you'll see what the problem is.