In perl how can I start a process in my case totem and immediately return to my perl program so I can the control totem from my perl script such as toggling to full screen etc.
System waits for totem to finish. It has to be manually killed.
Exec and backticks also wait.
I have just discovered that putting an & at the end puts it in the background and control returns to the perl script :-
system("totem /home/peter/songs_video_mpeg/$file &");
Proc::Background looks evn better
So problem solved thanks