SPA 525G Dictionary Server Script

Hello,
I'm trying to make the phone, a SPA 525G (With firmware 7.4.9a), to display in the dutch language. Despite the Cisco community, Cisco adm manual, and Google it's still not working.
I'm using provisioning by the use of APACHE, PHP and MYSQL to generate a XML file. This works great, but the parameter of the Dictionary Server Script does something but nothing really changes.
I use the fallowing XML:
<!--# Language-->
<Dictionary_Server_Script group="Regional/Language">srv=http://<SERVER_DNS>/Cisco/LANG/749/;d1=Dutch;x1=spa525_nl_v749.xml;d2=Duits;x2=spa525_de_v749.xml;</Dictionary_Server_Script>
<Language_Selection group="Regional/Language">Dutch</Language_Selection>
Now the phone gives me the option to switch to Duits, Dutch of English, but nothing changes.
On the web server the language XML file aint requested by any phone, not even after a language change.
Can someone help me with this issue?
Many thanks!

Hi,
I have in Spanish and works great.
serv=http://SERVER_IP/diccionarios/;d0=English;x0=spa50x_30x_en_v749.xml;d1=Spanish;x1=spa50x_30x_es_v749.xml
I know you have to have the english first as d0. And you have written srv instead of serv.
Hope it helps. (and what is Duits?)
Diego

Similar Messages

  • SPA 525G[2]: monitor mjpeg video RTSP , remove PATH constraint

    Having read the forum's guide on the topic ,
    https://supportforums.cisco.com/docs/DOC-9806 , and related errata
    it's clear the phone can render MJPEG via RTSP.  The defect is the expectation of a needlessly specific URI PATH
    rtsp://10.20.30.40/img/jpgvideo.sav
    The SPA 525G and 525G2 could easily display ANY RTSP stream of MJPEG; it certainly has the power.   If one constrained the video stream (or transcoded non-matching stream on the fly) to:
    320x240
    5 fps
    Constant Bit Rate
    (with low bitrate)
    ref:
    phone would play it PROVIDED one match the INANE URI PATH
    SPA video monitoring bugs
    Cannot use video monitoring with BlueTooth enabled
    setting line to disabled is not enough  (admin advanced, voice, phone, bluetooth)
    SPA video monitoring defects
    cannot assign video monitor to soft touch button?
    INANE URI PATH filter precludes direct use of compliant video via RTSP from other IP cameras
    It IS possible to use other mjpeg stream via RTSP so long as one presents inane expected PATH
    Please remove the PATH filter from the phone's firmware in the next update.
    SPA525G2 video monitor DOES work with TrendNet TV-IP312  [ethernet IP Camera]
    video encoding: mjpeg
    video quality: normal
    frame rate: 5
    ..with some creative use of nginx or apache
    I don't use wifi because I prefer quality communication with minimal or zero jitter.  Home ISPs offer [inflict] wifi as a  way to oversell (depriving you of the bandwidth you purchase)
    Question_1
    When will Cisco allow PATH variations?  I understand Cisco wanting to sell integration between products.  Cisco need NOT support third party RTSP video sources.  But Cisco OUGHT NOT prevent customer providing own additional value for one's own Cisco product.
    [ Consider customer use of free Open Source PBX with Cisco SIP phones:  not supported but NOT disallowed   http://freepbx.org  https://freeswitch.org http://sipsorcery.com ]
    Question_2
    When will Cisco SPA video monitoring support MPEG4?  Yes, I understand there are more parameters to configure for MPEG4 vs MJPEG
    Question_3
    When will Cisco SPA switch be upgraded from old timey  100BASE-TX  to  gigabit ethernet?
    An appropriate reply SHALL NOT quote the above guide or section of documentation as it would insult the customer or demonstrate gross ineptitude on behalf of Cisco.

    There is no reason I should have to delete my preferences every single time I want to use the program.
    Sure enough, but your description of the behavior and the whole shebang crashing with ntdll indicates a file I/O or permissions problem nonetheless. So check your folder permissions, user privileges and possibly any security tools. Same for 32bit services and drivers that simply may not be compatible. A quick look in the device manager can tell you that...
    Mylenium

  • Calling SQL Server Script File in Hypersonic DB

    HI All,
    I am using Hypersonic Database with java swing.
    To update the database, i am getting SQL Server script file through a webservice.
    The problem is i dont have any idea, how i can update Hypersonic Database with the SQL Server script file.
    Please Help.
    Thanks
    Nitin

    Also I think
    CREATE TABLE table1
    ( tableoneid INT PRIMARY KEY NOT NULL
    , name VARCHAR(255) NOT NULL
    , PRIMARY KEY(tableoneid) );should probably be
    CREATE TABLE table1
    ( tableoneid INT CONSTRAINT table1_pk PRIMARY KEY
    , name VARCHAR(255) NOT NULL );otherwise you specify the primary key twice (and PRIMARY KEY implies NOT NULL so the NOT NULL is redundant).
    Then TABLE2 might need to be something like:
    CREATE TABLE table2
    ( tabletwoid INT NOT NULL
    , tableoneid NOT NULL CONSTRAINT table2_table1_fk REFERENCES table1
    , CONSTRAINT table2_pk PRIMARY KEY(tabletwoid, tableoneid) );although the table-level constraint syntax could be used for the foreign keys if it meant less editing of your scripts. The "CONSTRAINT constraintname" clause of constraints is optional but recommended, as otherwise they will get system-generated names like "SYS_C005157". (Note that if you specify the FK inline as part of the column definition you do not need to include a datatype.)
    If the IDENTITY clause causes a sequential value to be assigned as a default, there is no direct equivalent to that in Oracle. The nearest thing would be a row-level BEFORE INSERT trigger.

  • C# application to execute both oracle and sql server script files.

    Hi All,
    I am suppose to develop an application using c# which can execute oracle script files as well as sql server script files based on some user's choice. 
    Both the script files(oracle/sql server) contains scripts to create tables, create views and create functions.
    What is the best way to do this and which existing c# functions should is use.
    Thanks in advance.

    I am suppose to develop an application using c# which can execute oracle script files as well as sql server script files based on some user's choice. 
    You can use SQL Plus for Oracle. You can have a C# program that issues commands  for  scripts for table, views, triggers  creation and the whole 10 yards to SQL Plus,
    http://docs.oracle.com/cd/B19306_01/server.102/b14357/qstart.htm
    https://www.google.com/#q=sql+plus
    I started writing a program to use SQL Plus to run the scripts, but cI ame to the conclusion that it was a waste of my time.
    A tool called OSM, an Oracle, tool gives a list of script files that need to be run do to a change in a script file based on file timestamp. You can copy the list doing a copy/past operation and drop it into SQL Plus's Command line, and SQL Plus runs the
    scripts.
    For MS SQL Server, you have this, which you can run from a C# program too.
    http://www.webfactory-world.de/wfknowledgebase/wfknowledgebase_wf3.3/Content/AdditionalWindowsSettings/Tutorials/UpdatingSQLDBFromCommandLine.htm
    I would consider using the above from a C# program a waste of time too.
    I look at it this way. If the user doesn't have database admin experience and know how to use DB admin tools, then they have no business doing anything with a database - period.
    BTW, the Invoke statement in VB or C# will run SQL Plus or SQL Server command line tool.

  • Sql Server Script for the List of all Country State and City

    I am searching for the Sql Server Script of all country State and City with the Following type
    For the Country only 2 Columns are there i.e. CountryId and CountryName(CountryId is primary Key)
    For the State 3 Columns are there i.e. CountryId, StateId and StateName(StateId is Primary Key and CountryId is Foreign Key)
    For the City 3 Columns are there i.e. StateId ,CityId and CityName(CityId is PrimaryKey and StateId is foreign Key).
    I need this type of Script with Column name. plzzz help me out i m stuck i didnt get the list as i want.
    Thanx and Regrads,

    Hi Vishnu,
    According to your description, you want to list all countries, states and cities, right?
    I have tested it on my local environment, here is a sample script for you reference.
    select
    [dbo].[Country].[CountryId]
    , [dbo].[Country].[CountryName]
    , [dbo].[State].[StateId]
    , [dbo].[State].[StateName]
    , [dbo].[City].[CityId]
    , [dbo].[City].[CityName]
    from
    [dbo].[Country]
    left join [dbo].[State] on [dbo].[Country].[CountryId]=[dbo].[State].[CountryId]
    left join [dbo].[City] on [dbo].[State].[StateId]=[dbo].[City].[StateId]
    Regards,
    Charlie Liao
    TechNet Community Support

  • Using SQL Server Script to create Oracle DB Schema

    Hi,
    I have a SQL Server script which does a few things such as creating databases (after dropping), creating tables etc. Now I want to replicate the SQL Server databases and their tables etc in an Oracle9i DB. How would a SQL Server script compare to an Oracle script? i.e. what differences are there? and how would I have to alter the script to have it work on Oracle?
    As an example, my SQL Server script would look something like this:
    DROP DATABASE test1;
    DROP DATABASE test2;
    CREATE DATABASE test1;
    CREATE DATABASE test2;
    GO;
    USE test1;
    CREATE TABLE Table1 (
    TableOneID INT IDENTITY PRIMARY KEY NOT NULL,
    Name VARCHAR(255) NOT NULL,
    PRIMARY KEY(TableOneID));
    CREATE TABLE Table2 (
    TableTwoID INT IDENTITY NOT NULL,
    TableOneID INT NOT NULL,
    PRIMARY KEY(TableTwoID, TableOneID),
    FOREIGN KEY(TableOneID) REFERENCES Table1(TableOneID));
    USE test2;
    CREATE TABLE ....
    etc...
    thanks!

    Also I think
    CREATE TABLE table1
    ( tableoneid INT PRIMARY KEY NOT NULL
    , name VARCHAR(255) NOT NULL
    , PRIMARY KEY(tableoneid) );should probably be
    CREATE TABLE table1
    ( tableoneid INT CONSTRAINT table1_pk PRIMARY KEY
    , name VARCHAR(255) NOT NULL );otherwise you specify the primary key twice (and PRIMARY KEY implies NOT NULL so the NOT NULL is redundant).
    Then TABLE2 might need to be something like:
    CREATE TABLE table2
    ( tabletwoid INT NOT NULL
    , tableoneid NOT NULL CONSTRAINT table2_table1_fk REFERENCES table1
    , CONSTRAINT table2_pk PRIMARY KEY(tabletwoid, tableoneid) );although the table-level constraint syntax could be used for the foreign keys if it meant less editing of your scripts. The "CONSTRAINT constraintname" clause of constraints is optional but recommended, as otherwise they will get system-generated names like "SYS_C005157". (Note that if you specify the FK inline as part of the column definition you do not need to include a datatype.)
    If the IDENTITY clause causes a sequential value to be assigned as a default, there is no direct equivalent to that in Oracle. The nearest thing would be a row-level BEFORE INSERT trigger.

  • How to set userCustom fields in server script

    Does anyone know if it is possible to create UserCustomFields using a server script api call?  I basically want to emulate what the room console does with added CustomFields except I dont know the method to call on the server.  I am adding functionality to the java server script provided in the sdk download. 
    Thanks for any help.
    -chris

    Nigel,
    Thanks for the reply.  I am trying to make my application a little easier for others to setup once it is given out.  I wanted to have a little java app (following the example of the command line java example) that will setup the room names correctly and set the custom fields. 
    In my actual flex application I do have the owner register the custom fields but if someone that is not the owner logs in first then the custom fields are never registered b/c someone that is not an owner cant create custom fields.
    I can just make instructions for the user to setup the room names correctly and then login the first time as the owner so the fields get set.
    Cant wait to see that server API though
    -chris

  • CISCO SPA-504G & CISCO SPA-525G plug nad play???

    Hi,
    we have CCM 7.1.5 and I need to add about 100 new phone/users. we received good price for this two phones CISCO SPA-504G & CISCO SPA-525G.
    This one look and I think is the same linksys spa 942 phone, and for that one I need to do provisioning to get them to work.
    Are this two phones CISCO SPA-504G & CISCO SPA-525G, "plug and play" does CCM recognized them like other Cisco phones (like 7941....)
    THX,
    IVan

    Sounds like you need to adjust the dial plan string under the relevant Ext tab on the admin web interface of the phone. 

  • SPA 525G an Fritzbox 7390 anmelden

    Hallo zusammen,
    ich versuche nun schon seit gestern mein SPA 525G per Wlan mit meiner Fritzbox zu koppeln. In das Wlan bin ich auch schon gekommen und in der Fritzbox habe ich das Telefon schon eingerichtet und Daten bekommen, die ich im Telefon noch hinterlegen muss.
    Ich habe ein Registrar, in diesem Fall fritz.box und einen User inklusive Passwort, ich finde aber in den Einstellungen des Telefons nichts wo ich diese Daten hinterlegen kann um mich dann anzumelden. Kann mir da hier jemand weiterhelfen?

  • SPA 525G Phones rebooting during phone calls

    Hi,
    My office uses a SPA 525G system and recently phones have been randomly rebooting during phone calls, causing the calls to drop. I have seen previous forums on various sites about this being a common problem but still do not have a clear answer on what a good solution might be.
    Any help would be greatly appreciated.
    Thanks!

    Are you using The Bluetooth on SPA525G? I find that this happens when I have BT connected to my iPhone
    Sent from Cisco Technical Support iPhone App

  • How to call BS Browser Script from Server Script

    I have a req. where a confirmation message need to be displayed to the user from Server Script.
    I have followed the steps described in bookshelf http://download.oracle.com/docs/cd/E05553_01/books/CommSrvAdm/CommSrvAdm_AdvConfig40.html
    and the same is not working. I am invoking the BS from Applet Server script.
    Please let me know if the above steps can be used in our context as it is not at all related to CTI.
    For the above config I have selected one of the existing Profiles in our system and am not sure about the role played by the same.
    Thanks in advance.

    You create a Business Service, then deploy the BS as described in the bookshelf and finally call it through Browser Scripts.
    You can't interact with the browser session from the server the way you describe your requirement.

  • Retrieve meta for a stream from server script?

    I want to create a server script that will reply with the meta of a specified stream.  This is for a player I have that really needs meta, but I hate having to start playing the video to get it.  Is this possible?  What calls does the server need to do to fetch and transmit the meta?
    Cheers

    Try Stream.getOnMetaData (http://help.adobe.com/en_US/flashmediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7 e42SSASLR.html#WS5b3ccc516d4fbf351e63e3d11a11afc95e-7f38SSASLR) - see if that resolves your problem

  • What's difference push stream with server script and push with flash media live encoder??

    Hi
    I'm multi point push streaming with adobe flash media server 4
    Stream structure like this
    Open Broadcaster Software (or Flash media live encoder) (RTMP) -> Home Flash media server with multi push script (main.asc)
    -> Stream to 2 justintv channels + 1 dailymotion channel (1024x576 , 1750Kbps)
    no problem at all when streaming to justintv
    but some another stream services have speed problem
    ustream can not push with this method
    and dailymotion, vaughnlive push speed slow down than OBS or FMLE Direct stream
    for example
    when direct streaming with OBS or FMLE (Without home server) , no problem at all stream to dailymotion and vaughnlive
    clearly no lag
    but when push with server script, slow down push speed and unstable (it affect only for dailymotion and vaughnlive streams)
    justintv upload speed same as OBS, FMLE's bitrate but dailymotion, vaughnlive bitrate always slower than justintv or OBS, FMLE
    Like this - justintv , OBS, FMLE (1750Kbps~2000Kbps) but dailymotion, vaughnlive (1600Kbps~1800Kbps)
    I don't understand why have push speed difference between server script push and OBS, FMLE push
    Have any reason? and do not have solution???
    (sorry for my bad english)

    First of all let me clarify that we call multi point publish and it has been explained in detail here
    http://help.adobe.com/en_US/flashmediaserver/devguide/WS5b3ccc516d4fbf351e63e3d11a0773d56e -7ffbDev.html
    When you do multi point publish(MPP) you publish from one server to another server, when you use FMLE you do a normal publish of stream(s) from a client/encoder(FMLE in this case) to the Adobe Media server.

  • Browser Script or Server Script run first

    Hi,
    As the tittle above may I know the priorty that siebel would run first ? Browser script or server script first ? Its important for me as my own thumb of rule.
    Cheers.
    Edited by: 928756 on Jun 19, 2012 3:50 AM

    Hi,
    The browser scripts are executed before server scripts!
    for more info & details:
    http://docs.oracle.com/cd/E05553_01/books/PlanUpgdSiebel7/PlanUpgdSiebel7_chapter18.html
    ;-)

  • Minecraft server script (run minecraft server as a daemon in Arch)

    Hey all, I just finished editing and setting up a nice script to run a Minecraft server at boot in Arch. This is based on the original script on the minecraft wiki here. I've edited it to be suitable to place in your /etc/rc.d/ folder with the name "minecraft" (/etc/rc.d/minecraft).
    This requires a user "minecraft" with the home directory /home/minecraft to work by default.
    I decided I wanted to run the server entirely in RAM so I store all my files in /home/minecraft/backup while the server is offline. When it starts up it makes a tmpfs mount at /home/minecraft/minecraft and copies all the files there and runs from there. It makes an hourly backup using /etc/rc.d/backup stored in /home/minecraft/onlinebackup, first erasing the current backup and creating a new one. This is simply to save space. In the event of a crash without proper stopping of the daemon you will have a backup from your previous reboot (or restart of your minecraft server) in /home/minecraft/backup and one from within the previous hour in /home/minecraft/onlinebackup which I figure ought to be enough. You can manually backup at any time by restarting the daemon.
    All paths can be altered. You can run this game under your normal user if you wish, just change the Settings section at the top of the file. RAM amounts may need to be increased for both the server and for the tmpfs, depending on how large your files are (mine are tiny and I have not heard of over 48MB for a game world, but you never know). Just check up on df -h every now and again to make sure your tmpfs has plenty of space, or just increase the allocated maximum size from the start. If you have low RAM you can always change the script to simply not use tmpfs.
    If anyone wants, just ask and I can put up a version without tmpfs (should be easy enough to remove yourself but if you're not sure I'll do it for you)
    All you need to start off with (if starting your server for the first time, using the scrip as is) is the user minecraft created, with the folders backup, onlinebackup and minecraft in the folder /home/minecraft, your minecraft_server.jar file in /home/minecraft/backup and your oninebackup file in /home/minecraft/backup.
    NOTE: onlinebackup file runs from /home/minecraft/minecraft so that if your system crashes, the cron job to run the backups will fail because the link will point to a non-existant file until server is started again.
    You can use these commands to with the server: /etc/rc.d/minecraft {start|stop|restart|update|backup}
    The backup system is designed to wipe all previous sessions' backups upon starting the server, so do not set it to start the server at boot.
    /etc/rc.d/minecraft
    #!/bin/bash
    # /etc/rc.d/minecraft
    . /etc/rc.conf
    . /etc/rc.d/functions
    #Uncomment line below if using Sun JRE
    #. /etc/profile
    #Settings
    SERVICE='minecraft_server.jar'
    USERNAME="minecraft"
    MCPATH='/home/minecraft/minecraft'
    MCOFFLINEPATH='/home/minecraft/backup'
    INVOCATION='java -Xmx768M -Xms768M -jar minecraft_server.jar nogui'
    BACKUPPATH='/home/minecraft/onlinebackup'
    ME=`whoami`
    as_user() {
    if [ "$ME" == "$USERNAME" ] ; then
    bash -c "$1"
    else
    su -c - $USERNAME "$1"
    fi
    mc_start() {
    stat_busy "Starting Minecraft Server"
    if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
    then
    echo "Tried to start but $SERVICE was already running!"
    else
    echo "$SERVICE was not running... starting."
    #Move minecraft from backup folder to ram
    mount -t tmpfs tmpfs -o size=50m $MCPATH
    cp -a $MCOFFLINEPATH/* $MCPATH
    echo "Files moved to RAM."
    cd $MCPATH
    as_user "cd $MCPATH && screen -dmS minecraft $INVOCATION"
    sleep 7
    if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
    then
    echo "$SERVICE is now running."
    #Create hourly backups while running
    ln -s $MCPATH/onlinebackup /etc/cron.hourly/minecraftonlinebackup
    echo "Hourly backups initiated."
    else
    echo "Could not start $SERVICE."
    umount $MCPATH
    fi
    fi
    add_daemon minecraft
    stat_done
    mc_saveoff() {
    if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
    then
    echo "$SERVICE is running... suspending saves."
    as_user "screen -p 0 -S minecraft -X eval 'stuff \"say SERVER BACKUP STARTING. Server going readonly...\"\015'"
    as_user "screen -p 0 -S minecraft -X eval 'stuff \"save-off\"\015'"
    as_user "screen -p 0 -S minecraft -X eval 'stuff \"save-all\"\015'"
    sync
    sleep 10
    else
    echo "$SERVICE was not running. Not suspending saves."
    fi
    mc_saveon() {
    if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
    then
    echo "$SERVICE is running... re-enabling saves."
    as_user "screen -p 0 -S minecraft -X eval 'stuff \"save-on\"\015'"
    as_user "screen -p 0 -S minecraft -X eval 'stuff \"say SERVER BACKUP ENDED. Server going read-write...\"\015'"
    else
    echo "$SERVICE was not running. Not resuming saves."
    fi
    mc_stop() {
    stat_busy "Stopping Minecraft Server"
    if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
    then
    echo "$SERVICE is running... stopping."
    as_user "screen -p 0 -S minecraft -X eval 'stuff \"say SERVER SHUTTING DOWN IN 10 SECONDS. Saving map...\"\015'"
    as_user "screen -p 0 -S minecraft -X eval 'stuff \"save-all\"\015'"
    sleep 10
    as_user "screen -p 0 -S minecraft -X eval 'stuff \"stop\"\015'"
    sleep 7
    if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
    then
    echo "$SERVICE could not be shut down... still running."
    else
    echo "$SERVICE is shut down."
    #Stop hourly backups
    rm /etc/cron.hourly/minecraftonlinebackup
    echo "Hourly backup halted."
    #Unmount tmpfs
    cp -a $MCPATH/* $MCOFFLINEPATH
    umount $MCPATH
    echo "Files copied to HDD."
    fi
    else
    echo "$SERVICE was not running."
    fi
    rm_daemon minecraft
    stat_done
    mc_update() {
    if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
    then
    echo "$SERVICE is running! Will not start update."
    else
    MC_SERVER_URL=http://minecraft.net/`wget -q -O - http://www.minecraft.net/download.jsp | grep minecraft_server.jar\</a\> | cut -d \" -f 2`
    as_user "cd $MCPATH && wget -q -O $MCPATH/minecraft_server.jar.update $MC_SERVER_URL"
    if [ -f $MCPATH/minecraft_server.jar.update ]
    then
    if `diff $MCPATH/minecraft_server.jar $MCPATH/minecraft_server.jar.update >/dev/null`
    then
    echo "You are already running the latest version of $SERVICE."
    else
    as_user "mv $MCPATH/minecraft_server.jar.update $MCPATH/minecraft_server.jar"
    echo "Minecraft successfully updated."
    fi
    else
    echo "Minecraft update could not be downloaded."
    fi
    fi
    mc_backup() {
    echo "Backing up minecraft world"
    if [ -d $BACKUPPATH/world_`date "+%m.%d.%Y"` ]
    then
    for i in 1 2 3 4 5 6
    do
    if [ -d $BACKUPPATH/world_`date "+%m.%d.%Y"`-$i ]
    then
    continue
    else
    as_user "cd $MCPATH && cp -r world $BACKUPPATH/world_`date "+%m.%d.%Y"`-$i"
    break
    fi
    done
    else
    as_user "cd $MCPATH && cp -r world $BACKUPPATH/world_`date "+%m.%d.%Y"`"
    echo "Backed up world"
    fi
    echo "Backing up the minecraft server executable"
    if [ -f "$BACKUPPATH/minecraft_server_`date "+%m.%d.%Y"`.jar" ]
    then
    for i in 1 2 3 4 5 6
    do
    if [ -f "$BACKUPPATH/minecraft_server_`date "+%m.%d.%Y"`-$i.jar" ]
    then
    continue
    else
    as_user "cd $MCPATH && cp minecraft_server.jar \"$BACKUPPATH/minecraft_server_`date "+%m.%d.%Y"`-$i.jar\""
    break
    fi
    done
    else
    as_user "cd $MCPATH && cp minecraft_server.jar \"$BACKUPPATH/minecraft_server_`date "+%m.%d.%Y"`.jar\""
    fi
    echo "Backup complete"
    #Start-Stop here
    case "$1" in
    start)
    mc_start
    stop)
    mc_stop
    restart)
    mc_stop
    mc_start
    update)
    mc_stop
    mc_backup
    mc_update
    mc_start
    backup)
    mc_saveoff
    mc_backup
    mc_saveon
    status)
    if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
    then
    echo "$SERVICE is running."
    else
    echo "$SERVICE is not running."
    fi
    echo "Usage: /etc/rc.d/minecraft {start|stop|update|backup|status|restart}"
    exit 1
    esac
    exit 0
    /home/minecraft/backup/onlinebackup
    #!/bin/bash
    # /home/minecraft/backup/onlinebackup
    rm -rf /home/minecraft/onlinebackup/*
    /etc/rc.d/minecraft backup
    UPDATE:
    rationalOgre has created an alternate script with a different backup system, which will keep compressed copies of your world indefinitely, along with a working update function. https://bbs.archlinux.org/viewtopic.php … 97#p944797
    Last edited by PIMPinator (2011-06-08 14:00:54)

    @PIMPinator - Weird. On mine, if I don't source /etc/profile it won't work. No clue what the difference is. I tested it after I got it up and running, removing different elements to see if one or the other was the problem. Without it all in place it just didn't work.
    I made some modifications to your script today. Fixed "update" so it works properly. (You had it running mc_backup after mc_stop, which never worked on my system.) I basically reworked it so it runs the backup, then stops the server and performs the update in the ~/backup directory, then restarts the server. I also completely overhauled the "backup" system. (for this to work you have to comment out the rm -rf ~/onlinebackup/* directive in the onlinebackup script.) Now, it creates 4 rolling backups of the server, in tar.gz format. What this means is that over time, you will accumulate the last 4 backups for each day in your ~/onlinebackup folder. I thought about creating a cleanup function to cull anything over 2 days old but to be honest, even if your world was > 50MB, zipped up it's going to be about ~20mb which means you can have 50 of them and only be taking up a gig of server space. Anyway, here's the code if you are interested.
    #!/bin/bash
    # /etc/init.d/minecraft
    . /etc/rc.conf
    . /etc/rc.d/functions
    #Comment out the following if using OpenJDK
    . /etc/profile
    #Settings
    SERVICE='minecraft_server.jar'
    USERNAME="minecraft"
    MCPATH='/home/minecraft/minecraft'
    MCOFFLINEPATH='/home/minecraft/backup'
    INVOCATION='java -Xmx768M -Xms768M -jar minecraft_server.jar nogui'
    BACKUPPATH='/home/minecraft/onlinebackup'
    ME=`whoami`
    as_user() {
    if [ "$ME" == "$USERNAME" ] ; then
    bash -c "$1"
    else
    su -c - $USERNAME "$1"
    fi
    mc_start() {
    stat_busy "Starting Minecraft Server"
    if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
    then
    echo "Tried to start but $SERVICE was already running!"
    else
    echo "$SERVICE was not running... starting."
    #Move minecraft from backup folder to ram
    mount -t tmpfs tmpfs -o size=50m $MCPATH
    cp -a $MCOFFLINEPATH/* $MCPATH
    echo "Files moved to RAM."
    cd $MCPATH
    as_user "cd $MCPATH && screen -dmS minecraft $INVOCATION"
    sleep 7
    if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
    then
    echo "$SERVICE is now running."
    #Create hourly backups while running
    ln -s $MCPATH/onlinebackup /etc/cron.hourly/minecraftonlinebackup
    echo "Hourly backups initiated."
    else
    echo "Could not start $SERVICE."
    umount $MCPATH
    fi
    fi
    add_daemon minecraft
    stat_done
    mc_saveoff() {
    if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
    then
    echo "$SERVICE is running... suspending saves."
    as_user "screen -p 0 -S minecraft -X eval 'stuff \"say SERVER BACKUP STARTING. Server going readonly...\"\015'"
    as_user "screen -p 0 -S minecraft -X eval 'stuff \"save-off\"\015'"
    as_user "screen -p 0 -S minecraft -X eval 'stuff \"save-all\"\015'"
    sync
    sleep 10
    else
    echo "$SERVICE was not running. Not suspending saves."
    fi
    mc_saveon() {
    if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
    then
    echo "$SERVICE is running... re-enabling saves."
    as_user "screen -p 0 -S minecraft -X eval 'stuff \"save-on\"\015'"
    as_user "screen -p 0 -S minecraft -X eval 'stuff \"say SERVER BACKUP ENDED. Server going read-write...\"\015'"
    else
    echo "$SERVICE was not running. Not resuming saves."
    fi
    mc_stop() {
    stat_busy "Stopping Minecraft Server"
    if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
    then
    echo "$SERVICE is running... stopping."
    as_user "screen -p 0 -S minecraft -X eval 'stuff \"say SERVER SHUTTING DOWN IN 10 SECONDS. Saving map...\"\015'"
    as_user "screen -p 0 -S minecraft -X eval 'stuff \"save-all\"\015'"
    sleep 10
    as_user "screen -p 0 -S minecraft -X eval 'stuff \"stop\"\015'"
    sleep 7
    if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
    then
    echo "$SERVICE could not be shut down... still running."
    else
    echo "$SERVICE is shut down."
    #Stop hourly backups
    rm /etc/cron.hourly/minecraftonlinebackup
    echo "Hourly backup halted."
    #Unmount tmpfs
    cp -a $MCPATH/* $MCOFFLINEPATH
    umount $MCPATH
    echo "Files copied to HDD."
    fi
    else
    echo "$SERVICE was not running."
    fi
    rm_daemon minecraft
    stat_done
    mc_update() {
    if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
    then
    echo "$SERVICE is running! Will not start update."
    else
    MC_SERVER_URL=http://minecraft.net/`wget -q -O - http://www.minecraft.net/download.jsp | grep minecraft_server.jar\</a\> | cut -d \" -f 2`
    as_user "cd $MCOFFLINEPATH && wget -q -O $MCOFFLINEPATH/minecraft_server.jar.update $MC_SERVER_URL"
    if [ -f $MCOFFLINEPATH/minecraft_server.jar.update ]
    then
    if `diff $MCOFFLINEPATH/minecraft_server.jar $MCOFFLINEPATH/minecraft_server.jar.update >/dev/null`
    then
    echo "You are already running the latest version of $SERVICE."
    rm $MCOFFLINEPATH/minecraft_server.jar.update
    else
    as_user "mv $MCOFFLINEPATH/minecraft_server.jar.update $MCOFFLINEPATH/minecraft_server.jar"
    echo "Minecraft successfully updated."
    fi
    else
    echo "Minecraft update could not be downloaded."
    fi
    fi
    mc_backup() {
    echo "Backing up minecraft world"
    local COUNTER=
    if [ -f $BACKUPPATH/co ]
    then
    COUNTER=`cat $BACKUPPATH/co`
    if [ $COUNTER -gt 4 ]
    then
    #Loop back to 1 if greater than the max number of desired saves (4 hardcoded)
    as_user "echo 1 > $BACKUPPATH/co"
    COUNTER=1
    fi
    else
    COUNTER=1
    as_user "echo 1 > $BACKUPPATH/co"
    fi
    if [ -f $BACKUPPATH/world_`date "+%m.%d.%Y"`-$COUNTER.tar.gz ]
    then
    as_user "rm $BACKUPPATH/world_`date "+%m.%d.%Y"`-$COUNTER.tar.gz"
    fi
    as_user "cd $MCPATH && tar -czf $BACKUPPATH/world_`date "+%m.%d.%Y"`-$COUNTER.tar.gz world"
    #now to update the counter
    as_user "echo $(($COUNTER + 1)) > $BACKUPPATH/co"
    echo "Backup complete..."
    #Start-Stop here
    case "$1" in
    start)
    mc_start
    stop)
    mc_stop
    restart)
    mc_stop
    mc_start
    update)
    mc_saveoff
    mc_backup
    mc_saveon
    mc_stop
    mc_update
    mc_start
    backup)
    mc_saveoff
    mc_backup
    mc_saveon
    status)
    if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
    then
    echo "$SERVICE is running."
    else
    echo "$SERVICE is not running."
    fi
    echo "Usage: /etc/rc.d/minecraft {start|stop|update|backup|status|restart}"
    exit 1
    esac
    exit 0
    I hope you don't mind.
    EDIT: Made a small change later that I came back and put in. If you are currently at the latest release it removes the .update file it created.
    Last edited by rationalOgre (2011-06-07 23:05:58)

Maybe you are looking for

  • 790FX-GD70 & 3TB Drive Trying to install windows 7 64 bit

    Hi, I've had this mother board for 2 years now, works great! Use it primarily for gaming, but it can handle anything I can throw at it... Until I got a 3TB SATA HDD... Well I learned rather quickly what I needed to do to be able to see the entire 3TB

  • How to define the Previous Year Up to Date in BI 7?

    Dear Expert, I have got a BI 7 report requirement which needs to restricted a key figure with Previous Year Up to date. I have found a time variable as Current Year Up to Date but not able to find the one for Previous Year Up to Date. Is it possible

  • Data corruption in input processor

    Hi, We have class scoped variables in the input processor. What is happening is that when userA and userB are trying to access the screen concurrently userA's class scoped variables start showing data of userB. Does anyone know if the webflow framewo

  • WebUI dont show anything

    hello everybody, I have setup a SAP CRM 7.0 System with a IDES Database (Double Stack: Java + Abap). At the moment I am making the post installation steps. Now i try to activate the WebUI. Actually I activated ALL services (with Transaction SICF) and

  • GetRowCount() is 1 but getRow() is null.. why ?

    Hi, Jdev 11.1.2 I am facing a strange behavior while Activation and Pasivation. Problem: vo is the Entity based viewobject vo.getRowCount() is 1 but vo.getCurrentRow()/getRow() is null Solution: In between the lines of code, I used vo.getEstimatedRow