BookmarkSubscribeRSS Feed
turcay
Lapis Lazuli | Level 10

The link below has the instruction for disabling Concurrent Logon Sessions for Web Applications. Is it possible to do the same for EG? If so, is there any link or document related to it?


SAS(R) 9.3 Intelligence Platform: Middle-Tier Administration Guide, Third Edition

7 REPLIES 7
turcay
Lapis Lazuli | Level 10

Does anybody have knowledge about this question ?

Kurt_Bremser
Super User

I have customized the startup script that is called by the spawner when a workspace session is launched.

(/...../WorkspaceServer_usermods.sh)

It checks for similar processes run by the same user, and if a certain number of lines is exceeded, terminates without starting SAS.

See here:

LIMIT=4

COUNT=`ps -ef|grep bridge|grep spawned|grep $USER|wc -l`

if [[ $COUNT -gt $LIMIT ]]

then

  #document the fact in the user's home directory in a log file

  date >> $HOME/.limit.log

  exit 1

fi

ChrisHemedinger
Community Manager

Nice solution!

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
Ersun
Calcite | Level 5
Hi Kurt, Can we change your Unix script for Windows OS env., or how to run on Windows Server this script (in order to prevent same user same time in diferent hosts)
SASKiwi
PROC Star

The script as written won't work on Windows. The command "ps -ef" is a Unix only command. The equivalent command in Windows is tasklist. This command will get a list of currently executing SAS sessions:

tasklist /FI "IMAGENAME eq SAS.EXE" /V

The list contains user names which could be filtered further. I'll leave it up to you to investigate further. I'm sure you have IT experts in your organisation that could script a solution. If it involves different hosts then that is going to be tricky... 

AlanC
Barite | Level 11

I am not weighing in on this much, just that Windows can run a lot of unix scripts. It has a unix subsystem (Windows Subsystem for Linux (WSL)). That said, PowerShell should be able to handle this w/o any issues. Process lists are pretty standard in the .NET world. I use them a lot. A quick search showed Get-Process. Either a script or PowerShell should work with similar logic.

https://github.com/savian-net
jakarman
Barite | Level 11

When you can get your hands on the EGUIDE profile.... 51225 - How to set the number of parallel processes that SAS® Enterprise Guide® can execute

Would advice Kurts approach . As I see Chris is a liking that one also I am getting hope this kind of approaches are getting accepted by SAS (often being blocked). 

---->-- ja karman --<-----

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 7 replies
  • 3074 views
  • 4 likes
  • 7 in conversation