No. Even if you could manage to do it (and there are ways to do that), any competent system administrator will object to it, for good reasons. One simply does not put passwords on commandlines, as these are open to all users on the same system.
Maxim 14: Use the Right Tool. The proper tool for what you want to do is sudo, so use it.
If you need to run a command from another user-id, have your UNIX admin enable this in sudo.
sudo can be set to allow you to run a certain command with a certain user without supplying credentials.
No. Even if you could manage to do it (and there are ways to do that), any competent system administrator will object to it, for good reasons. One simply does not put passwords on commandlines, as these are open to all users on the same system.
Maxim 14: Use the Right Tool. The proper tool for what you want to do is sudo, so use it.
How would it be done from the command line if you needed different credentials? However it is done from the command line is generally how it should be done in a FILENAME PIPE construct.
Jim
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
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.
Ready to level-up your skills? Choose your own adventure.