in reply to unable to launch GfxUI.exe using Proc::Background

I'm on a Linux machine, so I can't speak for Win32. Try a different approach. For example:
#!/usr/bin/perl use strict; use warnings; use Proc::Background; use vars qw(@ISA); @ISA = qw(Proc::Background); use Data::Dumper::Concise; my $loc = '/bin/ps'; my $proc1 = Proc::Background->new($loc); $proc1->wait; my $time1 = $proc1->start_time; my $time2 = $proc1->end_time; print "Status: \n", "end_time: ", Dumper($time2);

Replies are listed 'Best First'.
Re^2: unable to launch GfxUI.exe using Proc::Background
by priyaviswam (Sexton) on May 15, 2012 at 11:11 UTC

    Thanks for the post. In the approach you mentioned, the line

    my $proc1 = Proc::Background->new($loc); $proc1->wait;
    which is almost the same I have used in my code,is not launching the Graphics UI also did not return anything.