swaroop has asked for the wisdom of the Perl Monks concerning the following question:

Hi , say some perl/tk script in unix filesystem. how can we run this script from windows machine ?? How to mount the unix afs file system in windows system ?? any idea ?? Many thanx. ~Swaroop

Retitled by davido from 'how to run the script perl/tk program in windows system'.

  • Comment on OT: how to run the script perl/tk program in windows system

Replies are listed 'Best First'.
Re: OT: how to run the script perl/tk program in windows system
by fauria (Deacon) on Feb 03, 2005 at 20:54 UTC
    In order to run a Tk gui in windows, youll first need to install a Tk distribution for Win32.

    Searching google (it is a good idea to google prior to question), ive found TCL/Tk on Windows FAQ.

    Install it, and take a look at ported Perl distributions, as well as modules needed. ActiveState may have this things already prepared, but i dont really know it (i dont use windows).

    The other question: AFS, as a network distributed file system, can be mounted from anyware, under windows youll need (googled again) AFS for Win.
      I believe that the default ActiveState install includes the base Tk stuff... but you might have to add some of the other interesting widgets yourself.
Re: OT: how to run the script perl/tk program in windows system
by DaWolf (Curate) on Feb 03, 2005 at 18:57 UTC
    If I've understood correctly there are two questions here.

    The first is that you have a program that resides on a Unix machine and you would like to run it from a Windows workstation.

    I'd recommend to use a software like VMWare. The only caveat is that if I'm not mistaken VMWare is a commercial (paid) software. A free one is VNC, but I don't know if you can run a server on a system and a client on another (probably not).

    The second is about "mounting" a Unix filesystem on a Windows machine. I really encourage you to follow Grygonos's advice. Samba is a really great software and once is installed it runs smoothly.

    Hope it helps.

    Best regards,
      VNC and VMWare are two different things. VMWare emulates an i386 type system, enabling you to 'install' a Windows inside a linux box, or vice versa. VNC is just a means of remote connection to an existing, running machine. (And thus is most useful as client on one machine, server on another.)

      Caveat: They may have added functionality since I last looked, but if that includes emulation, I'd be surprised.

      C.

        True, castaway. I've made a little mess in my reply. I intended to recommend VMWare so he could install a windows inside his linux box and run it from there.

        Thanks for pointing it out :)

        Regards,
Re: OT: how to run the script perl/tk program in windows system
by Grygonos (Chaplain) on Feb 03, 2005 at 17:38 UTC
Re: OT: how to run the script perl/tk program in windows system
by zentara (Cardinal) on Feb 04, 2005 at 13:31 UTC
    Just "shooting from the hip" here, because I never have actually done it, from windows to unix. On linux to linux, you can ssh( or telnet) into the other machine, export the display(after setting the Xauthority), then run a Tk app remotely. I havn't tried it in a long time.

    Going from windows though, you may need an X emulator running on the windows machine, and use "putty" to log in to the unix machine. SSH will usually handle the "export display" automatically, if configured right. I don't know how putty would handle that. Just ideas for you to consider.


    I'm not really a human, but I play one on earth. flash japh