Register
It is currently Sun Apr 22, 2018 9:51 pm

GNU Plot Seg Fault


All times are UTC - 6 hours


Post new topic Reply to topic  [ 1 post ] 
Author Message
 PostPosted: Tue Feb 06, 2018 2:39 pm   

Joined: Mon Feb 05, 2018 12:06 pm
Posts: 1
Hello,

I keep getting the following error:
Code:
./runscript1.bash: line26: 84 Segmentation fault      (core dumped) gnuplot extrasimple.plt


Sometimes it works and produces the plot, but most of the time it produces the above seg fault, the number "84" escalates after each run to 100, 115, etc.. Please Advise.

Code:
#Present Buttons and store variable of button push
val=$(yad --center --width=300 --height=100 --title "Root Control Panel" --image "/mnt/c/tempic.png" --buttons-layout=center --text "Select Data to Visualize" --button="Live Database":1 --button="Import File":2 )   
ret=$?

#If Live Database Button, then present form for DB info entry
if [[ $ret -eq 1 ]]; then #Enter Database Information
    DBTYPE=$(echo "MySql,Postgres,MangoDB,M$DB,other")
yad --title="Database Information" --text="Please Enter you Database Information:" \
--image="/usr/share/icons/phone.png" \
--form --date-format="%-d %B %Y" --separator="," --item-separator="," \
--field="IP or Hostname" \
--field="Username" \
--field="Password":RO \
--field="Certificate Date":DT \
--field="Database Type":CBE \
--field="Additional Query:":TXT \
    exit 0
    #Enter Database Functionality At Later Date
   
fi

#If Select Data to Visualize button, present file browser and store selected file into variable and then cat to .txt for gnuplot
if [[ $ret -eq 2 ]]; then
DATA=`yad --file --multiple --width=600 --height=400`
cat $DATA >| DATA.txt
gnuplot extrasimple.plt
fi



Code:
#This file is extrasimple.plt which is called from previous script
set title "extrasimpleplot"
set title  font ",20" norotate
DEBUG_TERM_HTIC = 119
DEBUG_TERM_VTIC = 119
plot "DATA.txt" using 1:2 with lines
pause 1
reread


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP