Daniel Arevalos
05/23/2024, 12:18 PMraw_read
command ?Pat Deegan
05/24/2024, 12:46 AMproc reloadaftercomplete {} {
set targfile "[file tail [file rootname [xschem get current_name]]].raw"
set targpath "simulations/$targfile"
set numprocs 1
while {$numprocs > 0} {
after 500
set isrunning [open "|/home/ttuser/spiceruns.sh" r]
gets $isrunning numprocs
puts stderr "SPICE RUNNING $numprocs"
}
after 500
xschem raw_clear
xschem raw_read $targpath
puts stderr "reloaded $targfile"
}
which was pretty awful, even relying on a shell script to just do a ps waux | grep '[n]gspice' | wc -l type thing.
It worked but wasn't pretty -- hoping there's a better way.Pat Deegan
05/24/2024, 12:48 AM