Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
The ONE Campaign to make poverty history

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 76 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




         % ptksh  ?scriptfile?
         ... version information ...
         ptksh> $b=$mw->Button(-text=>'Hi',-command=>sub{print 'Hi'})
         ptksh> $b->pack
         ptksh> o $b
         ... list of options ...
         ptksh> help
         ... help information ...
         ptksh> exit


       ptksh is a perl/Tk shell to enter perl commands interac­
       tively.  When one starts ptksh a MainWindow is automaticly
       created, along with a ptksh command window.  One can
       access the main window by typing commands using the vari­
       able $mw at the 'ptksh> ' prompt of the command window.

       ptksh supports command line editing and history.  Just
       type "<Up>" at the command prompt to see a history list.
       The last 50 commands entered are saved, then reloaded into
       history list the next time you start ptksh.

       ptksh supports some convenient commands for inspecting Tk
       widgets.  See below.

       To exit ptksh use: "exit".

       ptksh is *not* a full symbolic debugger.  To debug perl/Tk
       programs at a low level use the more powerful perl debug­
       ger.  (Just enter ``O tk'' on debuggers command line to
       start the Tk eventloop.)



       Press <Up> (the Up Arrow) in the perlwish window to obtain
       a gui-based history list.  Press <Enter> on any history
       line to enter it into the perlwish window.  Then hit
       return.  So, for example, repeat last command is
       <Up><Enter><Enter>.  You can quit the history window with
       <Escape>.  NOTE: history is only saved if exit is "grace­
       ful" (i.e. by the "exit" command from the console or by
       quitting all main windows--NOT by interrupt).

       Debugging Support

       ptksh provides some convenience function to make browsing
       in perl/Tk widget easier:

           no options are given all options of the widget are
           listed.  See Tk::options for more details on the for­
           mat and contents of the returned list.

       o $widget /regexp/
           Lists options of $widget matching the regular expres­
           sion regexp.

       u ?class?
           If no argument is given it lists the modules loaded by
           the commands you executed or since the last time you
           called "u".

           If argument is the empty string lists all modules that
           are loaded by ptksh.

           If argument is a string, ``text'' it tries to do a
           ``use Tk::Text;''.


       Ptksh compiles into package Tk::ptksh.  Your code is
       eval'ed into package main.  The coolness of this is that
       your eval code should not interfere with ptksh itself.

       Multiline Commands

       ptksh will accept multiline commands.  Simply put a "\"
       character immediately before the newline, and ptksh will
       continue your command onto the next line.

       Source File Support

       If you have a perl/Tk script that you want to do debugging
       on, try running the command

         ptksh> do 'myscript';

          -- or  (at shell command prompt) --

         % ptksh myscript

       Then use the perl/Tk commands to try out different opera­
       tions on your script.


       Looks for your .ptksh_history in the directory specified
       by the $HOME environment variable ($HOMEPATH on Win32 sys­


       trounce on them by accident).


       Tk::MainLoop function interactively entered or sourced in
       a init or script file will block ptksh.


       Tk perldebug


       VERSION 2.01 6/18/98


       Mike Beller <beller@penvision.com>, Achim Bohnet

       Copyright (c) 1996 - 1998 Achim Bohnet and Mike Beller.
       All rights reserved.  This program is free software; you
       can redistribute it and/or modify it under the same terms
       as Perl itself.

Tk800.024                   1999-07-27                   PTKSH(1)

An undefined database error occurred. SELECT distinct pages.pagepath,pages.pageid FROM pages, page2command WHERE pages.pageid = page2command.pageid AND commandid =

Show your Support for the Linux Tutorial

Purchase one of the products from our new online shop. For each product you purchase, the Linux Tutorial gets a portion of the proceeds to help keep us going.



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
You can choose larger fonts by selecting a different themes.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.11 Seconds