Gossamer Forum
Home : General : Perl Programming :

Perl/Tk application

Quote Reply
Perl/Tk application
Hello Experts,

I am an ASIC tester and i have been asked to do something with Perl/Tk
so I would appreciate it, if I can get some help into this.I have done bits of it but I am stuck into one particular area. So here is the meat :

- I have been given lots of perl scripts that test verilog code. I didn't write the scripts, I simply open a terminal "perl scriptname.pl" and after 15 - 30 minutes i get a "testname.log".This is what is vital for me the log. I want to insert this thing into a gui, but to manage lots of scripts
running in parallel. So i though if i could make something like cells with rows and collumns, a widget to select the perl script, start/stop button and a status label would be perfect. I could load up many test cases and when they are done I could see the results.

Here is how I visualize it:


Test case     Time Started    Status       Start/Stop    View
My_case      Today,12:23     Running
My_case2    date,time         Failed


and here are my problems.

1) How can i make a table that will add
extra rows each time another file is added.This should be increasing dynamically.

2) Can I give behaviour to a button to change label. Something like onclick() -label=>"Stop", this is for the start stop button.

3) I know how to run a perl script through
perl and grab its output, but how do I stop it ? Do i kill the job ?

Any ideas or recommendations? I haven't found any widget that can do
the cells and colums....

If you can point me to any samples or relevant topics I would be
greatful.


Thank you kindly
Vassili
Quote Reply
Re: [r00t] Perl/Tk application In reply to
I'm not sure about some of your questions....but I know one of them;

>?>>3) I know how to run a perl script through
perl and grab its output, but how do I stop it ? Do i kill the job ? <<<

Log in via SSH, and type;

ps aux

..find out the PID number for the process, and type;

kill ID_NUMBER

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Perl/Tk application In reply to
Perl scripts will exit on their own unless put into some sort of infinite loop.

Philip
------------------
Limecat is not pleased.