Avatar of Los Angeles1
Los Angeles1
 asked on

RHEL, scripting an su

When I write a script, and in the script I do a

su - user

Open in new window


None of the other commands in the script are executed.

How do I get the other commands to be executed
Linux

Avatar of undefined
Last Comment
omarfarid

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Tintin

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
omarfarid

can you show your script?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck