01-30-2010
Do this function variable is dependent on the case statement. Can you just rewrite that function, so that .. let me have a look into that in training environment.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Gurus,
I've a find command that gets the list of files from a source directory where the extension is not html, xml, jsp, shtml or htaccess. The below find command runs fine from the command prompt or in a shell script. I need to eventually run it in a PERL script and am getting the... (5 Replies)
Discussion started by: voorkey
5 Replies
2. AIX
Hello Everyone,
I am new to shell scripting and also i am very new to AIX machine
I have a question.
I have shell script which contains the follwing
"ps -e |grep $1
echo $2"
i run this schell script by doing this ./startSehllscript 3444 passed with two parameters .
Accroiding my... (4 Replies)
Discussion started by: swati
4 Replies
3. Programming
Hello
im geting error here:
#include <stdlib.h>
#include <stdio.h>
using namespace std;
int main (int argc, char *argv)
{
char user;
string command;
cin << user;
command = printf ("grep '%s' /etc/shadow", user);
system (command.c_str());
}
return 0;
}
it should search shadow... (6 Replies)
Discussion started by: velniaszs
6 Replies
4. Shell Programming and Scripting
Hi,
I have a shell script as below:
ORACLE_HOME=/usr/local/opt/oracle/product/dev
export ORACLE_HOME
PATH=$PATH:$ORACLE_HOME/bin:/usr/bin
export PATH
OUTFILE=/export/home/`basename $0`.out
export OUTFILE
export IDEN
df -k . | tail -1 | read a b c d e f
echo $a >> $OUTFILE
echo $b... (4 Replies)
Discussion started by: Abhinav Pandey
4 Replies
5. Shell Programming and Scripting
Hi All,
i have two machines like x and y . my requirement is i should connect to machine Y from x through ssh connection . and do some operation such as copy and move and delete files in Y machine .
i tried with this code but it is doing in machine x only . and i need to exit from Y when... (1 Reply)
Discussion started by: rateeshkumar
1 Replies
6. Shell Programming and Scripting
Hi,
Input: XX = to_date ('9999-12-31 23:59:59', 'YYYY-MM-DD HH24:MI:SS')
Required output: XX=to_date (\'9999-12-31 23:59:59\', \'YYYY-MM-DD HH24:MI:SS\')
Regards
Akshu (3 Replies)
Discussion started by: akshu.agni
3 Replies
7. Shell Programming and Scripting
Hi,
I have situation where i need to automate transferring 10000+ files using sftp.
while read line
do
if ; then
echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt
fi
done< files.txt
sftp -b sftpCommand.txt stu@192.168.2.1
The above... (1 Reply)
Discussion started by: noobrobot
1 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I am trying to execute the following tar command with two --exclude options to suppress extract of the two directories specified.
Do I need to single quote the directory paths ??
Many thanks for your help.
The relevant code excerpt from the script is:
cd /var/www/${SITE}
... (7 Replies)
Discussion started by: daveu7
7 Replies
9. UNIX for Dummies Questions & Answers
I'm trying to learn how to use cron for repetative tasks. I have an external disk that needs to be unmounted and remounted every hour due to some problems that a backup utility (specifically, TimeMachine) is having repeatedly accessing the device. I've created a shell script that will find the... (3 Replies)
Discussion started by: illuminate
3 Replies
10. Shell Programming and Scripting
Hi,
I am writing shell script to automate few use cases for CLI interface. We have CLI interface which has bunch of commands. I am trying to execute one of the commands 'exit' as part of automation to exit from CLI object (not from shell script) in my shell script.
My intension is to execute... (4 Replies)
Discussion started by: Mahesh Desai
4 Replies
LEARN ABOUT PHP
fann_create_train_from_callback
FANN_CREATE_TRAIN_FROM_CALLBACK(3) 1 FANN_CREATE_TRAIN_FROM_CALLBACK(3)
fann_create_train_from_callback - Creates the training data struct from a user supplied function
SYNOPSIS
resource fann_create_train_from_callback (int $num_data, int $num_input, int $num_output, collable $user_function)
DESCRIPTION
Creates the training data struct from a user supplied function. As the training data are numerable (data 1, data 2...), the user must
write a function that receives the number of the training data set (input, output) and returns the set.
PARAMETERS
o $num_data
- The number of training data
o $num_input
- The number of inputs per training data
o $num_output
- The number of ouputs per training data
o $user_function
- The user supplied function with following parameters:
o num - The number of the training data set
o num_input - The number of inputs per training data
o num - The number of ouputs per training dataThe number of inputs per training data
The function should return an associative array with keys input and output and two array values of input and output.
RETURN VALUES
Returns a train data resource on success, or FALSE on error.
EXAMPLES
Example #1
fann_create_train_from_callback example
<?php
function create_train_callback($num_data, $num_input, $num_output) {
return array(
"input" => array_fill(0, $num_input, 1),
"output" => array_fill(0, $num_output, 1),
);
}
$num_data = 3;
$num_input = 2;
$num_output = 1;
$train_data = fann_create_train_from_callback($num_data, $num_input, $num_output, "create_train_callback");
if ($train_data) {
// Do something with $train_data
}
?>
SEE ALSO
fann_read_train_from_file(3), fann_train_on_data(3), fann_destroy_train(3), fann_save_train(3).
PHP Documentation Group FANN_CREATE_TRAIN_FROM_CALLBACK(3)