Skip Menu |
 

This queue is for tickets about the Win32-Job CPAN distribution.

Report information
The Basics
Id: 33515
Status: open
Priority: 0/
Queue: Win32-Job

People
Owner: Nobody in particular
Requestors: sdel [...] ansoft.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,HTML_MESSAGE
Content-Class: urn:content-classes:message
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C87568.3F097457"
X-MS-Tnef-Correlator:
Received: from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 496F24D80C9 for <bug-libwin32 [...] rt.cpan.org>; Fri, 22 Feb 2008 10:33:52 -0500 (EST)
Received: (qmail 9890 invoked from network); 22 Feb 2008 15:33:52 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 22 Feb 2008 15:33:52 -0000
Received: from mail.ansoft.com (HELO MAIL.ansoft.com) (192.149.1.199) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Fri, 22 Feb 2008 07:33:47 -0800
Delivered-To: cpan-bug+libwin32 [...] diesel.bestpractical.com
Subject: BUG in Win32::Job: Unable to run job as user other than user logged into machine
Return-Path: <sdel [...] ansoft.com>
Thread-Index: Ach1aD672nfIL4GmTduHaHEzGumJhQ==
X-Original-To: bug-libwin32 [...] rt.cpan.org
X-Spam-Check-BY: 16.mx.develooper.com
Date: Fri, 22 Feb 2008 10:33:16 -0500
X-Spam-Level: *
X-MS-Has-Attach:
Thread-Topic: BUG in Win32::Job: Unable to run job as user other than user logged into machine
Message-Id: <09F9F0A632745F499686960D1139E79D032FA496 [...] MAIL.ansoft.com>
X-Mimeole: Produced By Microsoft Exchange V6.5
To: <bug-libwin32 [...] rt.cpan.org>
From: "Steven Del" <sdel [...] ansoft.com>
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: us-ascii
Content-Length: 1841
Download (untitled) / with headers
text/plain 1.7k
Bug: Unable to run job as user other than user logged into machine Module: Win32::Job libwin32 version: 0.28 perl -v output: perl -v Show quoted text
> This is perl, v5.8.8 built for MSWin32-x86-multi-thread > (with 18 registered patches, see perl -V for more detail) > > Copyright 1987-2007, Larry Wall > > Binary build 822 [280952] provided by ActiveState
http://www.ActiveState.com Show quoted text
> Built Jul 31 2007 19:34:48 > > Perl may be copied only under the terms of either the Artistic License
or the Show quoted text
> GNU General Public License, which may be found in the Perl 5 source
kit. Show quoted text
> > Complete documentation for Perl, including FAQ lists, should be found
on Show quoted text
> this system using "man perl" or "perldoc perl". If you have access to
the Show quoted text
> Internet, point your browser at http://www.perl.org/, the Perl Home
Page. Description: As a user logged into the console, run the attached code sample, assuming you have a file c:\echo_path.bat that is valid. It will succeed. However, if while logged in as this user, you open a command prompt as another user (run "runas /user:<other user> cmd"), and then you attempt to run the below code, $job->spawn fails and returns "Access is denied" in $^E. I can run the Windows batch file directly, meaning the issue must have to do with the job itself. Perl code sample: #!perl use Win32::Job; my $job = Win32::Job->new; my $test_cmd = "c:\\echo_path.bat"; my $pid = $job->spawn(undef, $test_cmd); # THIS LINE RETURNS UNDEF if ( ! $pid ) { print "*** Error: Unable to run command: ${test_cmd}:\n"; print " " . $^E . "\n"; exit(1); } my $ok = $job->run(30, 1); my $retval = $job->status->{$pid}->{exitcode}; if ( $retval == 293 ) { print "### Warning: Timed out:\n"; print " ${test_cmd}\n"; } exit(0);
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: us-ascii
Content-Length: 4428


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.