By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,533 Members | 1,497 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,533 IT Pros & Developers. It's quick & easy.

system() doesnt give me the control back ..

P: n/a
Hello every one,
In our Linux Encoding system, a copy of helix dna producer is running
.....
i wrote an applicatoin which can remotely communicate with the
encoding machine ... Its function include

1. Kill currently running copy of the producer and
2. Restart the producer with new settings.

killing part of the producer was quite easy. But restarting it is
where i face problems. I use the system() function to issue the
command. But the problem is helix producer doesnt give back the
control to my program which makes my program not to respond. Does any
one have an idea for this ?? And can anyone suggest where does
function like fork, exec fit in my program ...

thanking you,
Vaddina Prakash Rao
Nov 14 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
pr********@gmail.com (Vaddina Prakash Rao) wrote in
news:68**************************@posting.google.c om:
I use the system() function to issue the
command. But the problem is helix producer doesnt give back the
control to my program which makes my program not to respond. Does any
one have an idea for this ?? And can anyone suggest where does
function like fork, exec fit in my program ...


You seek comp.unix.programmer since C does not specify how the program
invoked via system() must behave.

--
- Mark ->
--
Nov 14 '05 #2

P: n/a
Vaddina Prakash Rao <pr********@gmail.com> wrote:
Hello every one,
In our Linux Encoding system, a copy of helix dna producer is running
....
i wrote an applicatoin which can remotely communicate with the
encoding machine ... Its function include

1. Kill currently running copy of the producer and
2. Restart the producer with new settings.

killing part of the producer was quite easy. But restarting it is
where i face problems. I use the system() function to issue the
command. But the problem is helix producer doesnt give back the
control to my program which makes my program not to respond. Does any
one have an idea for this ?? And can anyone suggest where does
function like fork, exec fit in my program ...


If you were "restarting" this program by-hand, by logging in to
this machine and typing a command, what would you type?

BTW, please read the FAQ for this group.

Nov 14 '05 #3

P: n/a
Benjamin Ketcham <bk******@drizzle.com> wrote in message news:<1095409660.313703@yasure>...
Vaddina Prakash Rao <pr********@gmail.com> wrote:
Hello every one,
In our Linux Encoding system, a copy of helix dna producer is running
....
i wrote an applicatoin which can remotely communicate with the
encoding machine ... Its function include

1. Kill currently running copy of the producer and
2. Restart the producer with new settings.

killing part of the producer was quite easy. But restarting it is
where i face problems. I use the system() function to issue the
command. But the problem is helix producer doesnt give back the
control to my program which makes my program not to respond. Does any
one have an idea for this ?? And can anyone suggest where does
function like fork, exec fit in my program ...

If you were "restarting" this program by-hand, by logging in to
this machine and typing a command, what would you type?
I use the same string as my command to restart the applicatoin which i
pass to the system() function. And it gives back the control to the
shell !!
BTW, please read the FAQ for this group.


Sorry !! I guess, I am in the wrong group ??
Nov 14 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.