Execute shell script inside XBMC? e.g. apt-get?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
blubberx Offline
Junior Member
Posts: 28
Joined: Apr 2012
Reputation: 0
Location: Germany
Post: #1
Has anyone an idea if it is possible to execute shell scripts from inside XBMC?

I want to be able to install/remove the XBMC autobooter from inside XBMC as from time to time I want to use the AirPlay Mirror function of my Ipad3 which is unsupported yet in xbmc.

So i need to be able to execute:

Code:
apt-get install org.tomcool.xbmc-booter

and

Code:
apt-get remove org.tomcool.xbmc-booter
from inside XBMC.

The cake is a lie!
(This post was last modified: 2012-06-15 13:12 by blubberx.)
find quote
g-off Offline
Fan
Posts: 635
Joined: Aug 2011
Reputation: 3
Post: #2
Nope. Xbmc runs as user mobile who can't do diddly.
find quote
blubberx Offline
Junior Member
Posts: 28
Joined: Apr 2012
Reputation: 0
Location: Germany
Post: #3
Hmm well if sudo is available on ATV then this shouldn't be a problem.
But is xbmc able to execute command line scripts at all?

The cake is a lie!
find quote
Cranial Offline
Fan
Posts: 731
Joined: Aug 2008
Reputation: 3
Location: Sydney, Australia
Post: #4
Hmmm, I seem to remember reading somewhere that sudo isn't sudo in iOS.

Best to test under user mobile then see if you can integrate into Xbmc.
find quote
Ned Scott Offline
Team-XBMC Wiki Guy
Posts: 12,566
Joined: Jan 2011
Reputation: 138
Location: Arizona, USA
Post: #5
I think I asked once and was told that it wasn't possible, but I could be mistaking it for another question.

You can make easy links to the XBMC wiki using double brackets around words: [[debug log]] = debug log, [[Add-on:YouTube]] = Add-on:YouTube, [[Adding videos to the library]] = Adding videos to the library, [[userdata]] = userdata, etc
find quote
davilla Online
Team-XBMC Developer
Posts: 10,506
Joined: Feb 2008
Reputation: 58
Post: #6
sudo does not help while in a sandbox Smile The kernel gods will just shake their finger and say 'silly rabbit, sudo is for kids"


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
Cranial Offline
Fan
Posts: 731
Joined: Aug 2008
Reputation: 3
Location: Sydney, Australia
Post: #7
Kernel Sanders?

Mmmmmm.... chicken.....
find quote