Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 12-28-2009, 01:01 PM   #1
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, 05:40 PM   #2
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
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, 06:23 PM   #3
Registered: Jan 2009
Location: wherever I can make a living
Distribution: PC-BSD / FreeBSD / Debian / Ubuntu / Win7 / OpenVMS
Posts: 440

Rep: Reputation: 57
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'.

[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]$

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


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 09:21 AM
To execute two commands in a single line remotely ZAMO Linux - General 12 10-31-2008 02:31 AM
how can i make commands execute when I turn on linux? versaulis Linux - Software 1 08-29-2004 07:51 PM
execute commands in order to start newly installed programs kpachopoulos Linux - Newbie 1 08-05-2004 10:08 AM
Using FTP to execute command line commands remotely steve_2010 Solaris / OpenSolaris 4 02-13-2004 09:44 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:01 AM.

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