Re: [R] system() command in R

From: rasanpreet kaur suri <rasanpreet.kaur_at_gmail.com>
Date: Tue, 05 Apr 2011 10:45:12 +0200

Hi,

         The further steps do not get executed because the server keeps waiting. and they are in the same function as the start server.

if server started manually then they run normally from the R environment. Is that what you wanted to know? I hope I answered it .

On Tue, Apr 5, 2011 at 10:07 AM, nandan amar <nandan.amar_at_gmail.com> wrote:

>
>
> On 4 April 2011 16:54, rasanpreet kaur suri <rasanpreet.kaur@gmail.com>wrote:
>
>> Hi all,
>> I have a local server insalled on my system and have to start that from
>> within my R function.
>>
>> here is how I start it:
>>
>> cmd<-"sh start-server.sh"
>>
>> system(cmd, wait=FALSE)
>>
>> My function has to start the server and proceed with further steps. The
>> server starts but the further steps of the program are not executed.The
>> cursor keeps waiting after the server is started.
>>
>> How r u executing further steps after starting server, meant for server
> from R ??
>
>
> i tried removing the wait=FALSE, but it still keeps waiting.
>>
>> I also tried putting the start-server in a separate function and my
>> further
>> script in a separate function and then run them together, but it still
>> waits. The transition from the start of server to next step is not
>> happening.
>>
>> Please help. I have been stuck on this for quite some time now.
>>
>> --
>> Rasanpreet Kaur
>>
>> [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help_at_r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>
>
> --
> Amar Kumar Nandan
> Karnataka, India, 560100
> http://aknandan.co.nr
>

-- 
Rasanpreet Kaur

	[[alternative HTML version deleted]]

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 05 Apr 2011 - 10:25:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 05 Apr 2011 - 11:20:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive