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
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.