muze has asked for the wisdom of the Perl Monks concerning the following question:
hello guys... I am very new to perl and using ubuntu 10.10. I tried to start a process (vlc player) using fork in which im successful. But I want vlc player not only to open but also to run a movie or sound on startup. Here is what I tried but, of course it does not work.
$directoryListing = `vlc`.`home/muze/sound.avi`; print $directoryListing; my $pid = fork(); if( $pid == 0 ){ print "VLC Player running\n"; }
So how do I pass sound path as argument to fork()? thnx
UPDATE:Also, how do I kill this process, lets say, after 10 seconds automatically
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing Process the Argument using fork()
by wind (Priest) on Mar 31, 2011 at 19:40 UTC | |
|
Re: Passing Process the Argument using fork()
by cdarke (Prior) on Apr 01, 2011 at 07:39 UTC |