Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: TK + Script

by haukex (Archbishop)
on Apr 07, 2021 at 14:41 UTC ( [id://11130956]=note: print w/replies, xml ) Need Help??


in reply to TK + Script

Wise Monks; I have hundreds of perl scripts that are executed via command, for a better use of users, I built a screen for windows in tk. I would like to make a screen where the user searches for the file, search for a certain script to run. The output of the file will be in the same folder as the original file.

Ok, so which part are you having trouble with? How do I post a question effectively?

If this is about running external commands, see Calling External Commands More Safely. For external programs that execute quickly, I recommend IPC::Run3, and for long-running external programs that you need to monitor the output of, see IPC::Run (though Tk may have its own module for that kind of thing, I'm not sure). If you need to manipulate filenames, see Path::Class (or the core File::Spec::Functions), and if you need to change the current working directory, see File::pushd (or the core chdir).

Replies are listed 'Best First'.
Re^2: TK + Script
by Ggavazzo (Novice) on Apr 07, 2021 at 14:54 UTC
    Thank you for the answer. My scripts are all in perl, I was thinking about opening a graphical screen in tk, selecting the file, selecting script.pl and a button to execute.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11130956]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-16 20:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found