View Full Version : Additional FTP 'site' commands
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:
Gamester17
2004-11-02, 19:00
raw ftp site command "execute <filename.xbe>" like the one evolutionx/evox has would be a nice addition too :cool:
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?
i'll have a look at it. shouldn't be too hard. is there a util or api for shelling an executable in xdk?
jmarshall
2004-11-04, 19:00
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.)
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.
maybe one more :kickass:
site restart
if it's possible, i dont know...
jmarshall
2004-11-04, 19:28
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.
any step forward on this yet?
gg
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.
fyi, i am working on this again. sorry for the delay. eta: asap.
:cool:
Gamester17
2005-05-19, 08:55
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.i like to second that :kickass: ...and if there are command that are not in there that needs to be added please add them to the builtin commands too, tia :bowdown:
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.
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.
Gamester17
2005-05-19, 14:45
...and while you're at it how about updating to latest filezilla point release code (currently 2.2.13c) (http://sourceforge.net/projects/filezilla)? :saint:
instead of speccing these out you should make the site command access the xbmc builtin commands.
these are the same commands available from python, keymap.xml, and the webserver.
that's what we've been talking about pretty much the whole time actually.
:cool:
dylanbox
2005-05-23, 12:41
...and while you're at it how about updating to latest filezilla point release code (currently 2.2.13c) (http://sourceforge.net/projects/filezilla)? :saint:
that would be terrific!
but the current release is 0.9.8a, 2.2.13c is the filezilla client version :)
ok guys, i have this feature implemented and working in my local build, but it took me a while to realize it was actually working - apparently the site command is not a supported command in the standard ms ftp (from the command line) - is this possible?
every time i try to use a site command from my command line i get "invalid command." finally, after realizing that wasn't an error returned from filezilla, but simply a client error, i tried a simple telnet session, and found that the site command is in fact working on the server side.
so what ftp client do i need to use in order to call site commands natively? is this meant to only work in a telnet session?
flashfxp supports it via raw commands, ctrl+r
:bump:
gglaze, would be nice if you could keep us all updated on your progress...
new filezilla [ ]
site commands [ ]
boost mode [ ]
:shocked:
when i used evox as my dashboard i could in flashfxp write execute c:\funnyprogram.xbeand have it start without having to see anything. i try this in xbmc and the command is unrecognized. does filezilla simply not have this command (maybe something equal?) or is it possible to activate it?
yay for reading? :shocked:
the feature is not in yet - i am testing it out now, and it will be in very soon.
:bump:
btw, whats with these 10 seconds visits to efnet then quitting? :rolleyes:
hmm, really? must be my g/f logging in on my profile in trillian, and then switching over to hers...
anyways, tough week at work, planning to get online this weekend and make some progress on this. are you sure you don't want me to go ahead and get the site commands in now, before i finish merging in the new filezilla stuff? i could put the site stuff in right away - it's pretty simple actually.
not sure it's such a good idea to add stuff to our current ftp. it *may* be stable now (that we finally found the serious bug).
maybe better to have the old ftp "as is" and use the new ftpserver to add experimental stuff to instead. btw, it's upto 0.9.6b now, and the bug jmarshall fixed has been added to their cvs.
i believe that in the ms ftp client, you can do a "literal site...." command, which will send it in raw format. might be something to try.
Gamester17
2005-07-04, 09:27
btw, it's upto 0.9.6b now, and the bug jmarshall fixed has been added to their cvs.filezilla are moving fast ahead and already released 0.9.8c (http://sourceforge.net/project/showfiles.php?group_id=21558&package_id=21737&release_id=338632) which seems to contain jmarshall's bug-fix "sometimes file downloads aborted prematurely leading to incomplete files"
i believe that in the ms ftp client, you can do a "literal site...." command, which will send it in raw format. *might be something to try.
i've used "quote site whatever" forever. does the same thing as literal and works on ms's ftp.
it's like a moving target - jm keeps making changes!
looking at this stuff now guys.
fyi, development progress report here (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=5;t=14355).