BookmarkSubscribeRSS Feed
whymath
Barite | Level 11

I am sure that my EG Server allow me to submit x command or pipe command.

But if I submit:

x "test.vbs";

Things goes strange, I can see a vbs process in task manager on EG Server computer, but the vbs task never stop until I mannually terminate it.

 

So I test this:

filename temp pipe "calc";
data _null_;
  infile temp;
  input text $256.;
run;

I switch to EG Server computer and there is a Windows Calculator process in task manager(the highlighted one), but no software interface of Windows Calculator can be seen. 

whymath_0-1769704657105.png

What's wrong with it?

1 REPLY 1
ChrisHemedinger
Community Manager

It looks like your server is allowing XCMD (an option that is typically disabled on server environments), so that's not the blocker.

 

But, when using EG to connect to a SAS session on a Windows server, the SAS is running "headless" -- meaning it has no Windowing/UI capacity. So when you launch another process that generates a UI interaction, it does not work as you would expect. It's an odd thing to do anyway -- use EG to tell SAS to launch another app on the server.

 

Regarding the VBS, it very much depends on what you want that VBS to do. VB Script is a legacy scripting technology that is not even deployed on newer Windows Server setups, with Microsoft positioning PowerShell as the tool of choice for automation in Windows apps.

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!
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
  • 1 reply
  • 58 views
  • 2 likes
  • 2 in conversation