Code Monkey home page Code Monkey logo

Comments (2)

allanbowe avatar allanbowe commented on September 27, 2024

Thanks @yabwon !

I think a user-specific auto-exec is a great idea. This would need to be saved at backend so that it can be available across different browser sessions.

This is probably a good point to enable home directories for users. Then, we can add the autoexec to the home dir, allowing the autoexec to be easily viewed and edited.

The implementation would therefore require:

  • Creating a /Users top level directory under SAS_PATH
  • When a new user (or the default desktop user) logs in for the first time, a subdirectory is created with their userid, eg /users/allan
  • In desktop or non-admin mode, the user just sees /users/$username. Admins will see every user under the top-level /users folder.
  • An empty /Users/allan/autoexec.sas file is also created

When launching a SAS session (executor.ts), the autoexec.sas file is copied (if it exists) from the user folder to the session folder (as user-autoexec.sas).

image

image

The SAS executor is also updated with the following code injected into the code.sas program: %inc "$(SAS_PATH)/sessions/$(sessionid)/user-autoexec.sas";

IMPORTANT - this behaviour should only happen for the /CODE/ExecuteSASCode API (not Stored Program requests)

from server.

saadjutt01 avatar saadjutt01 commented on September 27, 2024

With the latest(v0.3.2) version, you can set autoexec to ~/.sasjs-server/user-autoexec.sas in DESKTOP mode.

from server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.