Use system to start a server then execute commands on it
- From: "James Fassett" <reggieband@xxxxxxxxxxxxxx>
- Date: 22 Oct 2006 06:38:25 -0700
Hi,
I have a script set up that allows me to execute a seperate process
(start a perfoce server) and then call against it.
e.g.
system( "cmd to start perforce server &" );
... sometime later within the same script ...
`some cmd on perforce server`;
The problem is `some cmd` reacts as if the original system call had not
been made (i.e. as if perforce is not running). If I run a seperate
terminal and sleep between the calls I can see that the perforce server
has been properly started and I can call commands on the server;
however once the sleep expires `some cmd` still fails. `some cmd`
works as expected if the perforce server has been started externally to
the script (as in subsequent runs)
I have searched docs, tried fork (which didn't do what I wanted) and
I'm a bit stuck.
Any help appreciated.
Thanks,
James.
.
- Follow-Ups:
- Re: Use system to start a server then execute commands on it
- From: Joe Smith
- Re: Use system to start a server then execute commands on it
- From: Brian McCauley
- Re: Use system to start a server then execute commands on it
- From: Sherm Pendley
- Re: Use system to start a server then execute commands on it
- Prev by Date: Re: comparing 2 arrays strings when the number/name of arrays is dynamic
- Next by Date: Re: Use system to start a server then execute commands on it
- Previous by thread: FAQ 4.18 Does Perl have a Year 2000 problem? Is Perl Y2K compliant?
- Next by thread: Re: Use system to start a server then execute commands on it
- Index(es):
Relevant Pages
|