Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Problem with system command

Reply
Thread Tools

Problem with system command

 
 
Vic Russell
Guest
Posts: n/a
 
      02-08-2007
Hi,

I am launching an external program as follows (Windows XP OS):-

system 'start', 'notepad.exe';

If I shutdown my program whilst leavin (in this case) Notepad running and
restart it again it exhibits strange behaviour. If I shut down Notepad
before running the program again, all is OK. It is a little difficult to
describe the "strange behaviour" here (it would take a lot of text) but my
simple question is; how do I completely disassociate the system launched
application from my program in order to avoid this problem?

Regards,

Vic


 
Reply With Quote
 
 
 
 
Ron Bergin
Guest
Posts: n/a
 
      02-09-2007
On Feb 8, 9:36 am, "Vic Russell" <(E-Mail Removed)> wrote:
> Hi,
>
> I am launching an external program as follows (Windows XP OS):-
>
> system 'start', 'notepad.exe';
>

[snip]
> simple question is; how do I completely disassociate the system launched
> application from my program in order to avoid this problem?
>
> Regards,
>
> Vic


http://search.cpan.org/~jdb/libwin32...ess/Process.pm

 
Reply With Quote
 
 
 
 
Vic Russell
Guest
Posts: n/a
 
      02-12-2007
Thanks Ron, I will investigate.

"Ron Bergin" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> On Feb 8, 9:36 am, "Vic Russell" <(E-Mail Removed)> wrote:
>> Hi,
>>
>> I am launching an external program as follows (Windows XP OS):-
>>
>> system 'start', 'notepad.exe';
>>

> [snip]
>> simple question is; how do I completely disassociate the system launched
>> application from my program in order to avoid this problem?
>>
>> Regards,
>>
>> Vic

>
> http://search.cpan.org/~jdb/libwin32...ess/Process.pm
>



 
Reply With Quote
 
Vic Russell
Guest
Posts: n/a
 
      02-15-2007
Hi Michele,

I only used Notepad as a specific example. Actually we are using a document
differencing program but it was significant that Notepad caused the same
symptoms.
"Michele Dondi" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Thu, 8 Feb 2007 17:36:49 -0000, "Vic Russell" <(E-Mail Removed)>
> wrote:
>
>>If I shutdown my program whilst leavin (in this case) Notepad running and
>>restart it again it exhibits strange behaviour. If I shut down Notepad
>>before running the program again, all is OK. It is a little difficult to
>>describe the "strange behaviour" here (it would take a lot of text) but my

>
> Yet, it would be interesting to know what it is. By any chance, may
> this be an instance of the infamous unicode bug also described on np's
> page @ Wikipedia:
>
> http://en.wikipedia.org/wiki/Notepad#Unicode_detection
>
> ?
>
>>simple question is; how do I completely disassociate the system launched
>>application from my program in order to avoid this problem?

>
> I think some Win32 specific module would be a better bet.
>
>
> Michele
> --
> {$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
> (($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
> .'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
> 256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
suppress opening command window after using os.system command boriq Python 4 06-12-2008 10:42 AM
System.Security.SecurityException: Error de solicitud de permiso de tipo System.Net.WebPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089. Luis Esteban Valencia ASP .Net 0 07-14-2005 01:43 PM
Problem in run system command within Java using Runtime.exec() Charlie Zhang Java 5 06-19-2004 06:23 PM
problem with os.system command length jon c Python 1 02-10-2004 11:31 AM
os.system('cd dir1 ... and executing next os.system command in that directory (dir1) Irmen de Jong Python 2 08-12-2003 12:43 PM



Advertisments