system() doesnt give me the control back ..

  • Thread starter Vaddina Prakash Rao
  • Start date
V

Vaddina Prakash Rao

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
 
M

Mark A. Odell

(e-mail address removed) (Vaddina Prakash Rao) wrote in

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.
 
B

Benjamin Ketcham

Vaddina Prakash Rao said:
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.
 
V

Vaddina Prakash Rao

Benjamin Ketcham said:
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 ??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,146
Messages
2,570,832
Members
47,374
Latest member
EmeliaBryc

Latest Threads

Top