BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
MariaD
Barite | Level 11

Hi Folks,

 

Is there any way to add a code (bash), inside WorkspaceServer_usermods.sh script to capture the user and PID that starts the workspace server and save it on txt file?

 

Regards, 

1 ACCEPTED SOLUTION
2 REPLIES 2
Kurt_Bremser
Super User

The main shell script starts, as it's last action, the workspace server, so the process ID cannot be determined before that. To record the process ID of the WS, insert your code in the autoexec_usermods.sas file. SAS even provides automatic macro variables for this (SYSPROCESSID and SYSUSERID). 

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1224 views
  • 2 likes
  • 2 in conversation