Hello.
I am trying to download with youtube-dl command many channels from youtube.
Every channel puts in a different directory the channel's videos.
I need to make a small program that open independent terminals that will run after close my program.
How i can do this? Any idea?
Thank you
Jim.
Runs independent terminals
- doublemax@work
- Super wx Problem Solver
- Posts: 474
- Joined: Wed Jul 29, 2020 6:06 pm
- Location: NRW, Germany
Re: Runs independent terminals
I'm not quite sure what you mean with "independent terminals". I think opening a console window from a gui application is tricky, at least under Windows. Can't you use "normal" windows to display the progress of each task?
Re: Runs independent terminals
If by close you mean exit, than to me, the only way this can be done is to have those "independent terminals" as process(es) launched by your program.
Re: Runs independent terminals
Yes exit mean.
But how to open independent terminals?
With call system "terminal .... or something like it?
Like with many calls system(cmd);
But how to open independent terminals?
With call system "terminal .... or something like it?
Like with many calls system(cmd);
Re: Runs independent terminals
I think that on Windows, that would be wxExecute(cmd.exe + its arguments)
Re: Runs independent terminals
I will shut a try to Linux and if happen i just upload code.
Re: Runs independent terminals
This open a terminal only, without youtube-dl etc...
How to write to execute arguments?
Thank you
Jim
Code: Select all
wxString cmd1=wxT("gnome-terminal youtube-dl https://www.youtube.com/channel/UC1TA_XHxv6zwoK17gcoPQxw");
wxExecute(cmd1);
Thank you
Jim
Re: Runs independent terminals
I just find it.
Thank you
Jim
Code: Select all
wxExecute("xterm -e sh -c 'youtube-dl https://www.youtube.com/channel/UC1TA_XHxv6zwoK17gcoPQxw'");
Jim