検索

Question
· Mar 13

How do I get the name of the OS user used by the IRIS superserver?

Is there a way in ObjectScript to return the OS user of the superserver? I know %SYS.ProcessQuery can find this for a given process but is there a clean way independent of a specific process ID I can find the OS user used for background jobs?

For IRIS this is usually irisusr and Caché this is usually cacheusr but may vary based on installation and upgrade history of an instance. I would find it very useful to determine programmatically if a process is running as this particular user when the username may vary.

12 Comments
Discussion (12)3
Log in or sign up to continue
Article
· Mar 13 1m read

Cómo mostrar %Error de estado en la Terminal o ¡Tengamos un nuevo y útil alias de terminal!

¡Hola compañeros!

Otra vez más me he dado cuenta de que no hay una forma supersencilla de mostrar el error de la variable %Status, cosa que necesito con relativa frecuencia desde el terminal.

Sí, conozco las macros $$$, pero no son demasiado útiles en un terminal.

Habitualmente lo que hago es intentar recordar de memoria o copiar de algún sitio la fórmula:

USUARIO>w $System.State.DisplayError(st)

Así que introdujo el alias:

:alias err d $System.Status.DisplayError($1) ;

entonces, si obtenéis algo como

USUARIO>set st=##class(bla.bla).methodbla()

podéis obtener el error como

USUARIO>:err st
d $System.Status.DisplayError(st) ;
ERROR #879: El rol NewRole no existe.

Espero que os guste.

Todos los alias

Discussion (0)1
Log in or sign up to continue
Discussion (0)1
Log in or sign up to continue
Discussion (0)1
Log in or sign up to continue
Announcement
· Mar 13

VS Code release February 2025 (version 1.98)

 

Visual Studio Code releases new updates every month with new features and bug fixes, and the February 2025 release is now available.

There have been enhancements to GitHub Copilot with predictive editing, autonomous task completion, smarter code search, improved terminal and notebook support, and UI and workflow refinements.

If you need help migrating from InterSystems Studio to VS Code, or want to advance your knowledge of VS Code, take a look at the training courses George James Software offers > georgejames.com/vscode-training/

Highlights from version 1.98:

The release also includes contributions from our very own @John Murray through pull requests that address open issues. Find out more about these features in the release notes here > https://code.visualstudio.com/updates/v1_98

For those with VS Code, your environment should auto-update. You can manually check for updates by running Help > Check for Updates on Linux and Windows or running Code > Check for Updates on macOS.

1 Comment
Discussion (1)3
Log in or sign up to continue