In one of my programs another process is called using the system command e.g.
lv_error = system("myproc");
where lv_error is declared as an int.
myproc would be returning 0 for success and 1 for failure. e.g.
if (success)
{
return(0);
}else{
return(1);
}
When the return code... (3 Replies)
Hi I am having the script which contains more functions. I want to exit the function if any failure. I tried with exit - the session itself is getting logged out. How can i fix this issue? (11 Replies)
Hi all!
I wrote a file named as rman_backup.sh, and this is contents
#!/bin/ksh
ORACLE_SID=VNP;export ORACLE_SID
echo $ORACLE_SID
echo "Please Specify the kind of backup you want to take"
echo "1) LEVEL 0 VNP"
echo "2) LEVEL 1 VNP"
echo "3) EXPORT BACKUP"
echo "Enter your option"
... (4 Replies)
Hi,
I'm using plink to execute shell script on UNIX machines.
It works pretty well excepted with some machines where I don't have the same $PATH than with putty.
I'm using the command PLINK.EXE -ssh machinename -l user -pw password echo $PATHAnd for putty nothing special set, I use ssh as... (2 Replies)
Hi,
I need to do a test Telnet in KSH and if the connection is good then disconnect the telnet session with out logging in and without exiting the shell script.
Example output of a good connection:
$telnet xxx.xx.xx.xxx xxxx
Trying xxx.xx.xx.xxx...
Connected to xxx.xx.xx.xxx.
Escape... (1 Reply)
hi
while executing the following script, my terminal window is getting closed if I enter a invalid option. I want the script should go back the the command prompt. how to do achive it. i execute the script as . ./test
#! /usr/bin/ksh
Printf " Type of Installer : \n\t\t 1. Whole Build... (3 Replies)
Can somone take a look at this script for me - I'm trying to get it to exit if the format of dateToLookFor is not in the format YYYYMMDD:
function search
{
cd $logsloc
echo "Enter date in format YYYYMMDD (enter to exit):"
read dateToLookFor
echo $dateToLookFor | grep -q ... (2 Replies)
Hi Everyone,
I am confused on why the below snippet of code is not working as I intend it to do. I have googled and confirmed that "exit" is supposed to abort the execution of the script regardless if the exit was called from inside a function, or the main body of the script.
log_and_die() {
... (3 Replies)
I have tcsh scripts on path
/home/chrisd/tatsh/trunk/hstmy/bin/tcsh/
I want to run the script from within another script.
Suppose I go to directory
/home/chrisd/tatsh/trunk/hsdata/n02/terr0.25/darwin
and want to run checksrdist.tcsh
So I do
cd ... (1 Reply)
Hello all; hope someone can help me cause I am going crazy trying to find a solution for (what I think is simple) issue...looked hard up and down this forum and tried several "solutions" with no avail...so here's my issue:
I have this (parent) script: copylsofdcmcadefttosftpwithmove.sh
... (3 Replies)
Discussion started by: gvolpini
3 Replies
LEARN ABOUT PHP
fann_cascadetrain_on_data
FANN_CASCADETRAIN_ON_DATA(3) 1 FANN_CASCADETRAIN_ON_DATA(3)fann_cascadetrain_on_data - Trains on an entire dataset, for a period of time using the Cascade2 training algorithmSYNOPSIS
bool fann_cascadetrain_on_data (resource $ann, resource $data, int $max_neurons, int $neurons_between_reports, float $desired_error)
DESCRIPTION
The cascade output change fraction is a number between 0 and 1 determining how large a fraction the fann_get_MSE(3) value should change
within fann_get_cascade_output_stagnation_epochs(3) during training of the output connections, in order for the training not to stagnate.
If the training stagnates, the training of the output connections will be ended and new candidates will be prepared.
This training uses the parameters set using the fann_set_cascade_..., but it also uses another training algorithm as it's internal train-
ing algorithm. This algorithm can be set to either FANN_TRAIN_RPROP or FANN_TRAIN_QUICKPROP by fann_set_training_algorithm(3), and the
parameters set for these training algorithms will also affect the cascade training.
PARAMETERS
o $ann
-Neural network resource.
o $data
-Neural network training data resource.
o $max_neurons
- The maximum number of neurons to be added to neural network.
o $neurons_between_reports
- The number of neurons between printing a status report. A value of zero means no reports should be printed.
o $desired_error
- The desired fann_get_MSE(3) or fann_get_bit_fail(3), depending on which stop function is chosen by fann_set_train_stop_func-
tion(3)RETURN VALUES
Returns TRUE on success, or FALSE otherwise.
SEE ALSO fann_train_on_data(3), fann_cascadetrain_on_file(3).
PHP Documentation Group FANN_CASCADETRAIN_ON_DATA(3)