Welcome, Guest. Please login or register.

Author Topic: Child tasks/processes created from processes launched in a Shell window question  (Read 1966 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show all replies
Do they start automatically?
I managed to kill the bugs and make a small test proggie work. It basically sets up a secondary process of a certain name if it finds it in Ram:. Error checking is included. I was surprised it worked :lol: If it doesn't find the file it prints some message. If I put an executable file of the same name as the name the program searches for it prints another string.
The only problem is that I expected the executable to start itself after I use the CreateProc function...
At first I though that the startup and cleanup code of the compiler handled this and that the second task was forced to terminate after the first one exits. But I tested that with  a delay of 2 seconds (200 ticks), and still nothing happends.
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show all replies
@Piru

Yes, I'll use CreateNewProc() with 2.04+ machines, but I wanted to use CreatePro() conditionally on 1.3 machines (1.3 doesn't have CreateNewProc()). So I guess on these the only solution would be to set up the structure myself, boring :-o

@Hyperspeed

Could be, a virus can be programmed to be anything executable I guess..
\\"We made Amiga, they {bleep}ed it up\\"