linux command line & PHP
Posted: Tue Feb 03, 2009 3:43 pm
Hi all
I'm using Ubuntu 8.10 and want to accomplish following:
1. open firefox with some url
firefox http://www.someurl.com
2 sleep 10 sec; take screen shot of firefox browser
sleep 10; import -window root SomeScreenshotName.jpeg
3. close firefox
//don't kow how to close it with command line
and rest is to manipulate with image ..... (not problem)
problem shows when I first want to call firefox with
exec("firefox http://www.somesite.com);
Nothing Happens... WHY????
also tried to make screenshot at step 2
same thing....
but if I call
exec(traceroute http://www.somesite.com); it does the job.
can please somebody help me..
I'm using Ubuntu 8.10 and want to accomplish following:
1. open firefox with some url
firefox http://www.someurl.com
2 sleep 10 sec; take screen shot of firefox browser
sleep 10; import -window root SomeScreenshotName.jpeg
3. close firefox
//don't kow how to close it with command line
and rest is to manipulate with image ..... (not problem)
problem shows when I first want to call firefox with
exec("firefox http://www.somesite.com);
Nothing Happens... WHY????
also tried to make screenshot at step 2
same thing....
but if I call
exec(traceroute http://www.somesite.com); it does the job.
can please somebody help me..