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 

CLI in SAS Viya

Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.

Find more tutorials on the SAS Users YouTube channel.

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