Or using abrevihations as everyone else:
KISS
Keep It Stupid & Simple
Or in other words, think what the user NEEDS, not what you think of.
Or give him lesser options, makes it easier to fetch available choices.
Example:
hth
EDIT:
Other than that, i (as well) have no idea what you talk about automation...
You list a bunch of folders, where is the automation in that?
What does your script do (other than creating folders)?
EDIT2:
Automation requires BRAIN v2.0 at least.
You (should) KNOW what you want to automate.... we cant help if we dont have enough data to evaluate from...
I have to write an automated sftp script which uses password authentication method to access the remote server. I want to pass the password as a parameter or to be included in the script itself, so that when i run the sftp script, it should not prompt me to enter the password.
Thanks in advance... (1 Reply)
Hi all
I am trying to create a script to automate the creating of filesystems.
The problem I am having is as follows:-
After creating the Log Logical Volume, I want to format it, using the logform command.
The Logform command expects user intervention, by typing 'y' and 'enter' to continue.... (2 Replies)
Hi all.
basically i need to run a script every 30 minutes.
my script is simply an error report:
errpt
thats it, is there anyway to make this happen every 30 minutes
without having to type errpt in, the script will get bigger as i add more things to do but just need to know how to... (8 Replies)
I need to run a command at the end of a backup job and this command will produce a report of what my backup jobs have collected in the previous day. The real problem is that this binary works with absolute dates only, so I should have to modify the script every single time I need it to work. It... (1 Reply)
I have a script that will install software on all remote host. At the end of the script it starts the install.sh part and goes into a interactive mode asking Yes or No questions and prompting to add a username and password. My question is how can I script this so that these questions are... (7 Replies)
Dear Scripting Gods
I've never done shell scripting before and have only recently got to grips with Perl, so apologies for my naivity. I've written a perl program which takes in two files as arguments (these are text documents which take in the information I need) The perl program spits out a... (1 Reply)
Hi Guys,
There are some emails going deferred as we got some new IP's from our ISP. So I was trying to manually copy the deferred mail and forward it to our sales team so that they can contact our client. I am new to this script thing, but luckily I was able to write the code to extract the data... (1 Reply)
Hi,
I have a perl script that takes in 2 numerical values as ARGV.
perl script.pl parameter1 num1 num2
in my case I have 1000's of num1 and num2. I can have them in separate files. Please let me know how to automate this run using shell scripting or using awk, so that I don't have to... (4 Replies)
I want to automate the creation or processing of the following:
Directory and subdirectory creation for your scenario company
Files in each of the directories
Symbolic links from 2 subdirectories to their parent directories
Setting appropriate file permissions for the directories and... (1 Reply)
Discussion started by: ekglag2
1 Replies
LEARN ABOUT PHP
mkdir
MKDIR(3) 1 MKDIR(3)mkdir - Makes directorySYNOPSIS
bool mkdir (string $pathname, [int $mode = 0777], [bool $recursive = false], [resource $context])
DESCRIPTION
Attempts to create the directory specified by pathname.
PARAMETERS
o $pathname
- The directory path.
o $mode
- The mode is 0777 by default, which means the widest possible access. For more information on modes, read the details on the
chmod(3) page.
Note
$mode is ignored on Windows.
Note that you probably want to specify the mode as an octal number, which means it should have a leading zero. The mode is also
modified by the current umask, which you can change using umask(3).
o $recursive
- Allows the creation of nested directories specified in the $pathname.
o $context
-
Note
Context support was added with PHP 5.0.0. For a description of contexts, refer to "Streams".
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
mkdir(3) example
<?php
mkdir("/path/to/my/dir", 0700);
?>
Example #2
mkdir(3) using the $recursive parameter
<?php
// Desired folder structure
$structure = './depth1/depth2/depth3/';
// To create the nested structure, the $recursive parameter
// to mkdir() must be specified.
if (!mkdir($structure, 0777, true)) {
die('Failed to create folders...');
}
// ...
?>
ERRORS /EXCEPTIONS
Emits an E_WARNING level error if the directory already exists.
Emits an E_WARNING level error if the relevant permissions prevent creating the directory.
NOTES
Note
When safe mode is enabled, PHP checks whether the directory in which the script is operating has the same UID (owner) as the script
that is being executed.
SEE ALSO is_dir(3), rmdir(3).
PHP Documentation Group MKDIR(3)