in reply to Re^3: Changing process name
in thread Changing process name
So I need a way to change the name of a process from within the executed script. I also use this kind of execution for system commands and scripts (without perl -e)my $szPerlExe = $this->{$this->{choPerlExecutable}->GetStringSelection +()}; my $szShell = $this->{stcShell}->GetText(); $szShell =~ s/"/\\"/g; my $szCommand = $szPerlExe.' -e '.'"'.$szShell.'"'; $this->{wProcessId} = Wx::NewId(); $this->{hProcess} = Wx::Process->new($this, $this->{wProcessId}); $this->{hProcess}->Redirect(); $this->{hProcess}->CloseOutput(); my $wProcessPid = Wx::ExecuteCommand($szCommand, wxEXEC_ASYNC|wxEXEC_N +OHIDE, $this->{hProcess}); $this->{wProcessPID}->{$wProcessPid} = $szTimeStamp; $this->{tmrProcessRunning} = Wx::Timer->new($this, $this->{wProcessId} +); $this->{tmrProcessRunning}->Start(500); EVT_TIMER($this, $this->{wProcessId}, \&ProcessRunning_OnTimer); EVT_END_PROCESS($this, $this->{wProcessId}, \&ProcessEnded);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Changing process name
by BrowserUk (Patriarch) on Aug 26, 2006 at 14:01 UTC | |
by Outaspace (Scribe) on Aug 26, 2006 at 16:49 UTC |