linux command line & PHP

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

linux command line & PHP

Post by ddragas »

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..
Post Reply