sTeam Command Line

GSoC2016Logofever_logoFOSSASIA bring’s people together to share, create, develop and make things with Open Technologies and software. We organize science hack labs, Open Tech events, meetups and coding programs with developers, designers and contributors.
Checkout the FOSSASIA Idea’s page for more information.
(ˢᵒᶜⁱᵉᵗʸserver) aims to be a platform for developing collaborative applications.
sTeam server project repository: sTeam.

Why do we need command line for sTeam?

To access the server while it is running, inspect the data it has stored and make adhoc changes.

  • What utilities does sTeam command line provide to the user?It primarily provides proxy objects to the same objects in the server.
    Function calls on these objects are sent to the server and the result is sent back.
  • What dependencies do we need to execute the sTeam command line?The COAL protocol implementation is needed, which is part of the server code.
  • How to access the sTeam command line?run ./debug.pike in the tools directory (/usr/local/lib/steam/tools) of the server installation.
  • How to execute commands in the sTeam command line?Start with getting an object:
      me;  
      OBJ("/home/steam");  
      GROUP("steam");  
      USER("root");  
    

    Then call functions on that object.

  • What are the different commands which can be executed on the command line?Any function that the object supports.
    Check the source sTeam classes in /server/classes/
    In addition there are special function only available in the client, such as “create();”, which allow you to create new objects.
    Common function would be to “list Rooms;” , “List Gates;”.
  • How to use edit.pike?Run ./edit.pike Path to the created object. For eg. if a txt file is made with the address /home/steam/foobar.txt
 ./edit.pike /home/steam.foobar.txt
  • What errors can user face while running sTeam in command line mode?If you run a function that takes to many server resources, the connection drops.
  • What new features can be implemented in sTeam command line?See the Idea’s page

Leave a Reply