Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Similar to this question, is it possible to update installed plugins via the command line?

I'm running YSlow with beacon reporting as a nightly cron job under OSX:

/Applications/Firefox.app/Contents/MacOS/firefox-bin -no-remote -P YSlow http://www.example.com/ &
PID=$!
sleep 300
kill $PID

This dumps FF into the background and grabs the PID, waits 300 seconds (for the page to load) then kills it. If there is an update pending, the browser "hangs" waiting for a confirmation.

If I do click on the "install updates" link, everything works and then Firefox launches a new process - the $! returned by the shell is no longer valid.

Can I update a plugin from the command line without confirmation? Can I curl the XPI into a file and install it without confirmation?

share|improve this question

1 Answer 1

Make sure the following two changes are made to your YSlow profile in about:config:

app.update.mode=1;
app.update.silent=true;

app.update.mode=1 will download updates automatically for major and minor releases. If there is a incompatibility addon issue, it will prompt. However in combination with app.update.silent=true, the incompatibility prompt will not display and the update will be ignore, effectively making the whole process silent.

share|improve this answer
    
It looks like these settings are for FF itself, I still have to update manually for extensions. –  Maelstrom Nov 16 '09 at 19:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.