Posts: 5,008
Joined: Sep 2003
Reputation:
30
pike
Team Kodi Admin
Posts: 5,008
would'nt it be sweet if filezilla supported
* restart (launches itself)
* softboot
* hardboot
* power off
:bowdown:
especially the 1st one is useful after you just updated all files :kickass:
Posts: 5,008
Joined: Sep 2003
Reputation:
30
pike
Team Kodi Admin
Posts: 5,008
i would settle for "site execute filename.xbe". that way i could restart xbmc after an update, since i know in my script what the path and name is of xbmc.
any thoughts gglaze how hard this would be?
Posts: 109
Joined: Sep 2004
Reputation:
0
gglaze
Senior Member
Posts: 109
i'll have a look at it. shouldn't be too hard. is there a util or api for shelling an executable in xdk?
read the xbmc
online-manual,
faq and
search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the
forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Posts: 26,215
Joined: Oct 2003
Reputation:
187
if you can get it to call stuff in cutil, then you'll be fine - runxbe() etc. is all in there. that would be your best bet. have some system where certain site commands call some handler within the xbmc source tree, and we can handle that stuff from there (saves having to update filezilla source too much etc.)
Posts: 109
Joined: Sep 2004
Reputation:
0
gglaze
Senior Member
Posts: 109
ok, should be very straightforward to throw this together - it would also be useful for me, so i'll get on it soon.
so far, here's the spec i've got in mind:
site execute <___.xbe>
runs the named xbe executable
site softboot
exits xbmc and returns to dashboard
site hardboot
exits xbmc and hard-boots the xbox
site powerdown
exits xbmc and powers down the xbox
site exit
same as softboot?
site close
?? same as exit or same as stop maybe ?
site stop
stops any currently playing media (audio/video/picture-slideshow)
let me know if we need to modify this list or whatever. i'll follow up if i can't figure out how to do any particular commands.
read the xbmc
online-manual,
faq and
search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the
forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Posts: 5,008
Joined: Sep 2003
Reputation:
30
pike
Team Kodi Admin
Posts: 5,008
maybe one more :kickass:
site restart
if it's possible, i dont know...
Posts: 26,215
Joined: Oct 2003
Reputation:
187
just a note here for future reference:
if possible, do it using the built-in function scheme:
site xbmc.restart
site xbmc.shutdown
etc. these can then call cutil::execbuiltin()
and any extra stuff we add will be automatically available via ftp.
Posts: 40
Joined: Oct 2003
Reputation:
0
gaogao
Junior Member
Posts: 40
any step forward on this yet?
gg
Posts: 1
Joined: Apr 2005
Reputation:
0
2005-04-19, 17:55
i had a lazy idea. since i have quite a bit to my xbox and i sometimes want to reboot or shutdown the xbox it would be a neat feature to have a command implemented in the ftp. like "site reboot" for a reboot and a "site shutdown" for a shutdown of the xbox.
Posts: 109
Joined: Sep 2004
Reputation:
0
gglaze
Senior Member
Posts: 109
noted.
also, planning to remove some of the extra code inside the ftp implementation that already does things like restart, shutdown, etc. - i'm going to make it so that all site commands simply call the util exe commands.
also - unless anyone has objections - planning to make "xbmc." the default prefix - i.e. if you don't have a prefix, "xbmc." will be appended at the beginning automatically. this will allow "site restart" to still be a valid command.
read the xbmc
online-manual,
faq and
search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the
forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Posts: 3,805
Joined: Mar 2004
Reputation:
3
elupus
Team-XBMC Developer
Posts: 3,805
very neat way of doing it. clean an nice, just the way i like it..
if you happen to stumble upon the ftp transfer corruption bug digging around in the ftp server, feel free to fix that too.