in reply to Re^6: problem with par as other user
in thread problem with par as other user

Err, Windows got this start.com (or is it .exe?), and apparently I've been using that instead of your start.exe! Explains the terminal window. I renamed that to s.exe and then I got this message box about trying s.pl on 4 different locations (just as you expect looking in the start.c code...) However, isnt it supposed to run the thing given as argument?

"s.exe tktests.pl" still says the same about not finding s.pl!

I'm a little bit confused now...

Update: Ofcource! I renamed this s.exe to tktests.exe. However, runing it didn't do anything. As nothing seems to be happening! :/ Hmm...

Replies are listed 'Best First'.
Re^8: problem with par as other user
by vkon (Curate) on Jun 30, 2006 at 05:53 UTC
    I should have name it differently.

    But your tktests will not run anyway, because there's no perl/Tk in that package, only perl (strimmed. but you can populate PM files into .zip) and Tcl/Tk.

    Following code runs okay:

    use warnings; use strict; use Tcl::Tk; my $mw = Tcl::Tk::tkinit; #centers window CenterWindow($mw, 300, 200); Tcl::Tk::MainLoop; sub CenterWindow { my($window, $width, $height) = @_; #$window->idletasks; $width = $window->reqwidth unless $width; $height = $window->reqheight unless $height; my $x = int(($window->screenwidth / 2) - ($width / 2)); my $y = int(($window->screenheight / 2) - ($height / 2)); $window->geometry("=${width}x${height}+${x}+${y}"); }
    Try this out, it works for me...

    One more thing.

    There are console and "windows" mode editable by editbin. The problem is that w/o console you do not see error message (such as 'module Tk not found blablabla'), so I suggest you to try tests with console-based of executable

    Also you may want running applications from command line, so you need console version of executable again, see both at http://www.vkonovalov.ru/files-exchange/ cstart.exe and wstart.exe

    So try again with cstart.exe

      Lovely! Guess its time to use some module to get all files that are used in a script and insert them into the zip!

      However, I tried runing this now working tcltests.pl with both cstart and wstart, and I didn't get any console window with cstart!

      Ace
        Lovely! Guess its time to use some module to get all files that are used in a script and insert them into the zip!

        ... and this process could make password-protected ZIP to make source hiding, if needed.

        Do you think CPAN waits for this yet another packaging solution??

        However, I tried runing this now working tcltests.pl with both cstart and wstart, and I didn't get any console window with cstart!

        mea culpa. I've uploaded better "cstart.exe" to same location, and with a different name (start.exe) to avoid caching problems