(1) Your first if condition calls itself - you are nesting a restart of the program.
(2) I do not think this 'elsif' can execute since the simpler first part [$UL_PROCESS -eq 0] would always be caught above.
(3) I cannot say for sure, but your "if then elsif else fi" does not quite feel right. Perhaps it requires "elif then" to make computer logic correct.
I am running an Ubuntu Gutsy laptop with Advanced Compiz fusion options enabled. I am using xdotool to simulate keyboard input in order to rotate through multiple desktops.
I am looking for a way to kill a while true loop when the Enter key (or Control+C if it is easier) is pushed when the... (2 Replies)
I wonder if someone could help me here. I am trying to find a way of exiting from a loop but not exiting me from the script for example
#!/bin/ksh
# ************* FUNCTIONS ******************
function1() { #ping test
ping $1 2 > /dev/null
if ; then
... (13 Replies)
Greeting,
The following script completes after reading only one record from the input file that contains many records. I commented out the "ssh" and get what I expect, an echo of all the records in the input.txt file. Is ssh killing the file handle?
On the box "uname -a" gives "SunOS... (2 Replies)
Hi my code looks like:
if test $STEP -le 10
then
.
.
ls -1d AM*-OUT|while read MYDIR
do
cd $MYDIR
ls |tail -n1| while read MYFILE
do
.
.
if test -s $MYFILE
then
sqlldr ....
rc=$?
if test $rc -ne 0 (3 Replies)
Hi,
I have a really simple script which I want to run forever, inside the loop it runs a C application which if it exits should restart.
#!/bin/sh
while true
do
./SCF scf.conf >> scf.log
sleep 2
done
For some reason the SCF C application coredumps and the script is exiting.... (3 Replies)
Hi I am having a problem exiting a WHILE loop. I am on a Sun server using ksh.
I am running a Veritas Cluster Software (High Availablity) command to obtain a group status and grepping the command output for status "G" which means that the filesystem is frozen and therefore not available to... (3 Replies)
We are trying to design a flow so that an ETL job shouldn't start until the previous job completes. The script we have written is
while ; do sleep 2; done
The loop however exits even when the process is actually running. Why could this be happening? (12 Replies)
Hi ,
I am processing some files using below shell script the problem for loop exit after processing some files even though it exist.After modifying file.txt and rerunning the script and its running .Any Advise
for i in `cat /xx/file.txt |tr -s "," '\n' ` ; do
echo $i... (3 Replies)
Discussion started by: mohan705
3 Replies
LEARN ABOUT PHP
mysqlnd_qc_set_user_handlers
MYSQLND_QC_SET_USER_HANDLERS(3) 1 MYSQLND_QC_SET_USER_HANDLERS(3)mysqlnd_qc_set_user_handlers - Sets the callback functions for a user-defined procedural storage handlerSYNOPSIS
bool mysqlnd_qc_set_user_handlers (string $get_hash, string $find_query_in_cache, string $return_to_cache, string
$add_query_to_cache_if_not_exists, string $query_is_select, string $update_query_run_time_stats, string $get_stats, string
$clear_cache)
DESCRIPTION
Sets the callback functions for a user-defined procedural storage handler.
PARAMETERS
o $get_hash
- Name of the user function implementing the storage handler get_hash functionality.
o $find_query_in_cache
- Name of the user function implementing the storage handler find_in_cache functionality.
o $return_to_cache
- Name of the user function implementing the storage handler return_to_cache functionality.
o $add_query_to_cache_if_not_exists
- Name of the user function implementing the storage handler add_query_to_cache_if_not_exists functionality.
o $query_is_select
- Name of the user function implementing the storage handler query_is_select functionality.
o $update_query_run_time_stats
- Name of the user function implementing the storage handler update_query_run_time_stats functionality.
o $get_stats
- Name of the user function implementing the storage handler get_stats functionality.
o $clear_cache
- Name of the user function implementing the storage handler clear_cache functionality.
RETURN VALUES
Returns TRUE on success or FALSE on FAILURE.
SEE ALSO
Procedural user-defined storage handler example.
PHP Documentation Group MYSQLND_QC_SET_USER_HANDLERS(3)