I'm trying to send the file list as parameter to another job and execute it.
But the loop doesn't work, the inner job is running only once and not twice as expected
Last edited by Corona688; 06-11-2013 at 06:42 PM..
I have written a script to run on UNIX server. When I tested, it always hanged on after "date +"%D %T: XXXXXX script started." part. Then it wouldn't go further. UNIX server gave me one error message. I used the same code in another script. It works fine. I think the major problem may be in... (3 Replies)
I've been referring bash info for processes and came across a structure for a process which is defined like
typedef struct process
{
struct process *next;
char ** argv
.
.
.
}process;
What I don't understand is that in the program there's a for loop which goes like this
job... (2 Replies)
I have a script which uses below for loop:
for (( i = 0 ; i <= 5; i++ ))
do
echo "Welcome $i times"
done
But when I run the script, it gives error message:
Syntex Error : Bad for loop variable
Can anyone guide to run it?
Thanks in advance. (10 Replies)
Simple script, takes an cmd line argument and counts down to 1.
NUMBER=$1
# One argument must be provided, otherwise don't execute
if
then
echo "Error. Enter one argument "
exit 0
elif
then
echo " "
fi
# Integer value must be greater than zero
while
do
echo... (6 Replies)
I have a script that only works if I remove it from the looping scenario.
#!/bin/bash
# Set the field seperator to a newline
##IFS="
##"
# Loop through the file
##for line in `cat nlist.txt`;do
# put the line into a variable.
##dbuser=$line
echo "copying plugin..."
... (6 Replies)
Hi,
Below is my script in which i am using nested while loop to read two files and move the files to a remote server.
My issue is that the 2nd while loop doesn't stop executing and it keeps on executing.
Can someone please let me know where i have gone wrong.
myFile=$ESER_TEST_FILES
... (2 Replies)
Hey all,,
I know cshell is harmful:) but I am using this just "to know" - for educational purposes!... not for a long-term use.
lets say i have a list..
set arr=(x y z e f)
I wanna iterate the list with foreach ,, not with while.!!
foreach i $arr
echo $i
end
does not work (2 Replies)
I need to load an XML file and loop through a list of nodes in it to execute a shell script for each one using the attributes for each node as parameters for the script. Any ideas? Any help will be much appreciated. (1 Reply)
I'm trying to grab a list of file names from a directory, then process those files 5 at a time. In the link below. Instead of using files I'm using the files array which contains 15 strings starting with AAA.
So I'm trying to assign $fileset 5 of the strings at a time to pass to a command. So... (4 Replies)
Discussion started by: zBernie
4 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 dirSYNOPSIS
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)