Code: Select all
#!/usr/bin/tclsh
set fp [open "|/home/masterjm/pisg/pisg --configfile=/home/masterjm/pisg/chan.cfg" r]
while {![eof $fp]} {
puts stdout [gets $fp]
}
close $fp
[code]
There is no error handling, but it will save any changes to your eggdrop.
Code: Select all
/home/masterjm/pisg> cat diablo
#!/usr/bin/tclsh
set fp [open "|/home/masterjm/pisg/pisg --configfile=/home/masterjm/pisg/d2de.cfg" r]
while {![eof $fp]} {
puts stdout [gets $fp]
}
close $fp
oh, this is beyond my tcl knowledge.ppslim wrote:The only other way, is to launch PSIG into the background, and ignore if it completed or not.
Alternativly, using some more advanced function you could do the following.
Create a small Tcl script that does the following,
1: Runs PSIG
2: Manages and saves the status to a file.
Eggdrop will lauch this script to the background.
It will then periodicaly check for the file with the status info, read it aloud to the channel, and then delete the file.