Link to home
Start Free TrialLog in
Avatar of jtp51
jtp51Flag for United States of America

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
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tintin
Tintin

Add

echo "dir: $JOB_DIR"

before the mkdir and I think you'll see what the problem is.
Avatar of jtp51

ASKER

ahoffmann: Thanks... sorry guys, I had echoed the variable before and saw a value; however I had made more changes since.