I have a CProgramA that need to call CProgramB just before CProgramA terminates. How can this be achieved?
jobs 0 Junior Poster in Training
Recommended Answers
Jump to Post@jobs
If you just want to start a process CreteProcess or CreateProcessAsUser can help you on Windows. CreateProcessAsUser documentation has one example as well.
However, I am sure you …
Jump to PostYea, like "oh wait, I'm not using Windows!".
No offence. Concern still remains the same !!
Jump to Post>>All you did was guess, and that's not really helpful.
Of course it was a guess but I am not sure if it was not useful.
I was just trying to give pointers. I pity if you think it is a bad idea ?
Jump to Postexecl doesn't understand ">" as meaning redirection.
> In my syslog I see pid printed twice from progA. I don't know why.
Because it appears AFTER the fork(), and before the conditionals which switch between parent and child. So it happens in both.> Also progB syslog never …
Jump to Post> Then fork another process to change zip file permission.
Or just use the chmod() API call instead of running the chmod command.
All 30 Replies
Salem 5,265 Posting Sage
dubeyprateek 26 Junior Poster
Narue 5,707 Bad Cop Team Colleague
dubeyprateek 26 Junior Poster
Narue 5,707 Bad Cop Team Colleague
dubeyprateek 26 Junior Poster
jobs 0 Junior Poster in Training
Salem 5,265 Posting Sage
jobs 0 Junior Poster in Training
Salem 5,265 Posting Sage
jobs 0 Junior Poster in Training
Salem 5,265 Posting Sage
jobs 0 Junior Poster in Training
jobs 0 Junior Poster in Training
Salem 5,265 Posting Sage
jobs 0 Junior Poster in Training
Salem 5,265 Posting Sage
jobs 0 Junior Poster in Training
Salem 5,265 Posting Sage
jobs 0 Junior Poster in Training
Salem 5,265 Posting Sage
jobs 0 Junior Poster in Training
Salem 5,265 Posting Sage
jobs 0 Junior Poster in Training
Salem 5,265 Posting Sage
jobs 0 Junior Poster in Training
Salem 5,265 Posting Sage
jobs commented: jobs: thanks for the help. +1
jobs 0 Junior Poster in Training
jobs 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.