Re: Template Toolkit on Windows 7

2012-07-11 Thread Dennis Daupert
Geez, ask for a little help, and you get an encyclopedia ;-)

Lots to chew on. Thanks Mike, Howard, Leo, and Martin.
for the lessons. 

I did open a cmd prompt as administrator, and invoked
ttree. This time when I told him to create the .ttreerc file,
he dutifully did so at c:\, so I can now continue rolling
the rock up the hill.

best,

 /dennis 

Upcoming time off: none planned


Dennis Daupert, PhD
Software Engineer, Supplementary Applications Development
Global Service Development & Deployment, Global Enterprise Services 
Management
CSC

GOS | o: 1.317.298.9499 | ddaup...@csc.com | www.csc.com

This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: Template Toolkit on Windows 7

2012-07-11 Thread Arms, Mike
Dennis Daupert [ddaup...@csc.com] wrote:
> > Run the script or cmd as admin (right click on the command icon,
> > select run as admin) would probably help
> 
> This is a Perl script, configure.pl, no command icon to click on.
> Is there another way I can run it as admin?
> 
> best,
> 
> /dennis


Maybe do this:

Create a shortcut for it
Right click on it and select Properties
On the Shortcut tab, press the Advanced... button
Check the "Run as administrator" box 

If you need the CMD window console to stay up after running the Perl script, 
you could instead create a BAT file. The contents would be something like:

@echo off
C:\path_to_script\my_script.pl
PAUSE

Then right click on the BAT file, select Properties, select the Compatibility 
tab, check the "Run this program as an administrator" box.

This may or may not get you around file system permissions (I did not test) 
that Howard Tanner addressed in his email.

--
Mike Arms


___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: Template Toolkit on Windows 7

2012-07-11 Thread Howard Tanner
You said "when ttree tries to create his .ttreerc file the OS will not let
him do so".

 

As Leo was pointing out, this is probably a problem with authority. Running
the Perl script as an administrator would probably help, but that's not a
fix. The issue is probably that you don't have create authority to the
folder where the script is creating the file.

 

To fix this, you need to have administrator access to the PC where the
script is running. Assuming you do, you can use cacls (from the command
line) to grant yourself create authority to the folder (make sure you run
cmd as administrator).

 

Assuming you have administrator access, you can also use the graphical
interface to do this (easier for beginners). Open Windows Explorer and
navigate to the folder. Right-click the folder and select Properties, then
select the Security tab.  Since you probably need administrator authority to
make changes to this folder, click Continue. Click Add, type in your Windows
user name and click "Check Names". Assuming you entered the correct user
name, the fully qualified name should be returned (e.g. COMPUTER\USERNAME).
Click OK. Your user name should now appear in the list of authorized users.
With your name highlighted, check off "Full control" in the Allow column.
Click OK, then OK again and you should be back to Windows Explorer.

 

Your script should now be able to create the file.

 

From: perl-win32-users-boun...@listserv.activestate.com
[mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of
Dennis Daupert
Sent: Wednesday, July 11, 2012 1:48 PM
To: leosusa...@gmail.com
Cc: perl Win32-users
Subject: Re: Template Toolkit on Windows 7

 

> Run the script or cmd as admin (right click on the command icon, 
> select run as admin) would probably help 

This is a Perl script, configure.pl, no command icon to click on. 
Is there another way I can run it as admin? 

best,

/dennis 

Upcoming time off: none planned


Dennis Daupert, PhD
Software Engineer, Supplementary Applications Development
Global Service Development & Deployment, Global Enterprise Services
Management
CSC

GOS | o: 1.317.298.9499 | ddaup...@csc.com | www.csc.com

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to bind
CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose. 

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: Template Toolkit on Windows 7

2012-07-11 Thread Dennis Daupert
> Run the script or cmd as admin (right click on the command icon, 
> select run as admin) would probably help

This is a Perl script, configure.pl, no command icon to click on. 
Is there another way I can run it as admin? 

best,

 /dennis 

Upcoming time off: none planned


Dennis Daupert, PhD
Software Engineer, Supplementary Applications Development
Global Service Development & Deployment, Global Enterprise Services 
Management
CSC

GOS | o: 1.317.298.9499 | ddaup...@csc.com | www.csc.com

This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: Template Toolkit on Windows 7

2012-07-11 Thread leosusanto
Run the script or cmd as admin (right click on the command icon, select run as 
admin) would probably help

Sent on the Sprint® Now Network from my BlackBerry®

-Original Message-
From: Dennis Daupert 
Sender: perl-win32-users-boun...@listserv.activestate.com
Date: Wed, 11 Jul 2012 09:07:44 
To: perl Win32-users
Subject: Template Toolkit on Windows 7

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Template Toolkit on Windows 7

2012-07-11 Thread Dennis Daupert
I've coded mostly on *nix machines, so hadn't run into this one before.

On Windows 7, when invoking code that uses Template (for the first time), 
when ttree tries to create his .ttreerc file the OS will not let him do 
so. I tried 
creating an empty file of that name, thinking that Template could then 
populate it, but discovered the OS wouldn't allow me to do so, either. 
Pretty inhospitable, if you ask me.

At any rate, how do I get through this one?


best,

 /dennis 

Upcoming time off: none planned


Dennis Daupert, PhD
Software Engineer, Supplementary Applications Development
Global Service Development & Deployment, Global Enterprise Services 
Management
CSC

GOS | o: 1.317.298.9499 | ddaup...@csc.com | www.csc.com

This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs