Im working on shell like software under Linux,
In my shell the main process print ">>" than the user enter the command.
The main process forking new process that will execute the command
And than new ">>" will be printed
To run the wanted command im using execl (I have to use this specific command)
The problem is in the printing of the next ">>", because im using different processes I cant control the time of the next ">>" prin
Example:
For ls command
Output:
>>ls
>>
Files….
Same command again (like i wish that will be printed evry time)
>>ls
Fils…
>>
(for the record, after execl command the process is terminated, no command will run after the execl)