03-12-2007
Quote:
Originally Posted by matrixmadhan
If not a1 ... a5
how do you maintain the order ?
Like, how do you determine which should go first, next ?
If you maintain the order somewhere ( like that in a configuration file ), we could retrieve based on that.
Could you please provide some more input on that ?
yes, from the config file i ll get a comma separated list of directory names. We need to start with the first one in the list and go on...
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi, first post. Well, here goes:
Ok, so I need to build a round robin scheduling algorithm. I understand HOW the algorithm works and I can write it down/show you on paper if you were to ask me "how does the RR scheduling algorithm work?"
Only problem is that I'm having a hell of a time... (0 Replies)
Discussion started by: ramoneguru
0 Replies
2. Shell Programming and Scripting
Hi
I need to create a script that distributes in round robin fashion the contents of a file to 3 files. The number of lines in a content of file can vary from 1-n(Each line is just a one letter word).The entire lines needs to get distributed into 3 files ( The order doesnt matter) , at... (5 Replies)
Discussion started by: police
5 Replies
3. Shell Programming and Scripting
Hello!!
I have directories from 2008, with files in them. I want to create a script that will find the directoried from 2008 (example directory:
drwxr-xr-x 2 isplan users 1024 Nov 21 2008 FILES_112108), delete the files within those directories and then delete the directories... (3 Replies)
Discussion started by: bigben1220
3 Replies
4. Shell Programming and Scripting
I am attempting to write a housecleaning script that does the following:
1) goes to a specific directory
2) deletes all contents of that directory but a specific directory within it.
So my users all keep and use the Shared directory in OSX. Within /Users/Shared there are also standard named... (1 Reply)
Discussion started by: nomados
1 Replies
5. UNIX for Dummies Questions & Answers
I am very new to unix as well as shell scripting.
I have to write a script for the following requirement. In have to list all the files in directory and its sub directories along with file path and size of the file
Please help me in this regard and many thanks in advance. (3 Replies)
Discussion started by: nmakkena
3 Replies
6. Shell Programming and Scripting
Dear Members,
I have a list of xml files like
abc.xml.table
prq.xml.table
...
..
.
in a txt file.
Now I have to search the file(s) in all directories and sub-directories and print the full path of file in a output txt file.
Please help me with the script or command to do so.
... (11 Replies)
Discussion started by: Yoodit
11 Replies
7. UNIX for Dummies Questions & Answers
Hey, guys
I have a task:
Job Running time Priority
A 10 3
B 6 5
C 2 2
D 4 1
E 8 4
All 5 jobs have the same arrival time.
The question is, what is the average waiting time according to Round Robin algorithm. Quantum = 1 min.
The answer that was given by a... (1 Reply)
Discussion started by: Anne_Stark
1 Replies
8. Programming
Hi
I am implementing Round Robin Scheduling using ucontext.h functions.
Well i am using my own logic for round robin but i am stuck at one point.
I am using swapcontext for shifting from one process to another. Now how do i get to know that after 4 sec(Round Robin Time) where the process has... (1 Reply)
Discussion started by: aditya08
1 Replies
9. Shell Programming and Scripting
hello,
I have a question regarding the below script.. I just simply trying to write to a file in directory that does not have write permissions but this is failing .. it still writes to it regardless ..
Many thanks in advance..
#!/bin/bash
#check if dir exists, if so write to it
... (5 Replies)
Discussion started by: Reb0rn
5 Replies
10. AIX
I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. I do not want to assign user the same group of that directories too.... (0 Replies)
Discussion started by: blinkingdan
0 Replies
LEARN ABOUT PHP
php_ini_scanned_files
PHP_INI_SCANNED_FILES(3) 1 PHP_INI_SCANNED_FILES(3)
php_ini_scanned_files - Return a list of .ini files parsed from the additional ini dir
SYNOPSIS
string php_ini_scanned_files (void )
DESCRIPTION
php_ini_scanned_files(3) returns a comma-separated list of configuration files parsed after php.ini. These files are found in a directory
defined by the --with-config-file-scan-dir option which is set during compilation.
The returned configuration files also include the path as declared in the --with-config-file-scan-dir option.
RETURN VALUES
Returns a comma-separated string of .ini files on success. Each comma is followed by a newline. If the directive --with-config-file-scan-
dir wasn't set, FALSE is returned. If it was set and the directory was empty, an empty string is returned. If a file is unrecognizable, the
file will still make it into the returned string but a PHP error will also result. This PHP error will be seen both at compile time and
while using php_ini_scanned_files(3).
EXAMPLES
Example #1
A simple example to list the returned ini files
<?php
if ($filelist = php_ini_scanned_files()) {
if (strlen($filelist) > 0) {
$files = explode(',', $filelist);
foreach ($files as $file) {
echo "<li>" . trim($file) . "</li>
";
}
}
}
?>
SEE ALSO
ini_set(3), phpinfo(3), php_ini_loaded_file(3).
PHP Documentation Group PHP_INI_SCANNED_FILES(3)