Create custom user's directory with simple script
Hi forum,
I need to write a simple script that runs a few commands in an order. Let's just say that this sth like a cmd file: ./cmd [var] In the var section I want to add a username which automatically creates a directory somewhere. The fisrt attempt was sth like this: Code:
mkdir /ntprofiles/%u Any hints? |
Close. This would have done it:
Code:
mkdir /ntprofiles/$1 |
That was close really! Thank you very much!;)
|
All times are GMT -5. The time now is 10:15 PM. |