Warning: mysqli_query(): (HY000/1021): Disk full (/tmp/#sql-a2c-1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") in /var/www/html/wp-includes/wp-db.php on line 2024

Warning: mysqli_query(): (HY000/1021): Disk full (/tmp/#sql-a2c-1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") in /var/www/html/wp-includes/wp-db.php on line 2024
class="post-444118 post type-post status-publish format-standard hentry" id="post-444118">

how to get a value from array in bash

In the below i am checking the exit status , if it is not zero(which is a failure) i am displaying it by echo statment

while read -r record
 reccount=$((reccount + 1 ))
/usr/bin/java -jar NSGalinaMail.jar "$email_text"  "$email_subject" "$contact_email" "billingdept@ups.com" $lang  $cny_cd $MY_WORK/"Notify_$2.pdf"
        if [ $? -ne 0 ]; then
            emailCountFailure[$reccount-1]="Failure: Email to $contact_email for $ref_nr"
            echo "$emailCountFailure"
        fi
        echo "record_count=$reccount" >> $MY_WORK/"raw_data_$2"
        echo "emailCountFailure=$emailCountFailure" >> $MY_WORK/"raw_data_$2"
done < fileName ## a file with 10 records##

what ia m expecting is at least a 0 value if there is no failure, but it displays blank

emailCountFailure=

any solution for this? Thank you

Leave a Reply

Your email address will not be published. Required fields are marked *