LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-04-2009, 01:40 AM   #1
ddragas
LQ Newbie
 
Registered: Feb 2006
Posts: 14

Rep: Reputation: 0
linux command line & PHP


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

Last edited by ddragas; 02-04-2009 at 01:41 AM.
 
Old 02-04-2009, 01:43 AM   #2
CITguy
LQ Newbie
 
Registered: Apr 2006
Location: Indianapolis
Distribution: Ubuntu Hardy Heron (8.04) Server & Desktop
Posts: 14

Rep: Reputation: 0
Calling firefox with the exec() function...
Try either adding double quotes to the end of the argument OR removing the initial quotes from the argument.

Closing firefox...
If you only have one instance of firefox running, try "killall firefox".
 
Old 02-04-2009, 03:19 AM   #3
ddragas
LQ Newbie
 
Registered: Feb 2006
Posts: 14

Original Poster
Rep: Reputation: 0
didn't understand "add double quotes - or remove double quotes"
can you please write it down in a way it should be...

Thank you for "killall firefox"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache PHP != Command Line PHP? wh33t Linux - Server 3 10-23-2007 09:21 PM
PHP from command line prabhatsoni Linux - Software 0 08-16-2007 11:37 AM
PHP on the command line? kev000 Linux - General 4 11-28-2006 03:16 PM
Command Line PHP in Slack 10 Trano Slackware 4 02-12-2005 05:16 PM
php from command line odious1 Linux - Software 4 05-03-2004 12:31 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration