LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-28-2009, 12:01 PM   #1
sr71919
LQ Newbie
 
Registered: Dec 2009
Location: Chennai, Tamil nadu, INDIA
Distribution: Fedora
Posts: 14

Rep: Reputation: 1
To install firefox extension in command line, How to make commands execute in order


How to make sure that the commands in a script file gets executed one after the other, waiting for the previous command to finish. Irrespective of the time the previous command takes.

I need to install a firefox extension right from command line, and then need to execute firefox. all inside a startup script.

I could boot up with Firefox installed and it starts up firefox (with my script) but the extension is not installed.

i need to execute the commands in order, one after the previous one finishes (successfully or completely or with exit status 0 i dont know exactly)

firefox -install-global-extension xyz.xpi
firefox &
 
Old 12-28-2009, 04:40 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
By default commands are run in order and wait for completion of the previous command to continue, the exception being if you background them.
 
Old 12-28-2009, 05:23 PM   #3
MBybee
Member
 
Registered: Jan 2009
Location: wherever I can make a living
Distribution: PC-BSD / FreeBSD / Debian / Ubuntu / Win7 / OpenVMS
Posts: 438

Rep: Reputation: 57
Quote:
Originally Posted by sr71919 View Post
firefox -install-global-extension xyz.xpi ; firefox &
Pretty much like the previous poster said. The ';' means 'do the command, then the next command'.

<edit>
Example:
Code:
[mbybee@host /usr/home/mbybee]$ date; sleep 5; date
Mon Dec 28 16:25:07 MST 2009
Mon Dec 28 16:25:12 MST 2009
[mbybee@host /usr/home/mbybee]$
</edit>

Last edited by MBybee; 12-28-2009 at 05:26 PM. Reason: added example
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how execute a command in a list of commands bkcreddy17 Programming 4 06-24-2009 08:21 AM
To execute two commands in a single line remotely ZAMO Linux - General 12 10-31-2008 01:31 AM
how can i make commands execute when I turn on linux? versaulis Linux - Software 1 08-29-2004 06:51 PM
execute commands in order to start newly installed programs kpachopoulos Linux - Newbie 1 08-05-2004 09:08 AM
Using FTP to execute command line commands remotely steve_2010 Solaris / OpenSolaris 4 02-13-2004 08:44 AM


All times are GMT -5. The time now is 12:11 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration