Apr
18

How to run a shell script with different user with in another shell script ?

How to run a shell script with different user from/with in  another shell script ? Some times it is required to run a shell script with a specific OS user from another shell script, in such cases we can call the actual shell script with following options from another shell script. Here important thing to understand is one line ... /bin/su - -c "" /bin/su : it helps to call su binary to swith user -c option tells the command to run 009:/opt # cat 1.sh #!/bin/sh echo "in one" /bin/su...
Read more

Popular Posts

Enter your email address:

Buffs ...

Tags

ANT Automations Awards Banks Batch file Data Structures Database DB2 Devotional Downloads ETV Dhee Feel Fun Games HTML India Java JBOSS Jython Kafka MicroServices Microsoft Mobile Stuff Movies My SQL Networking Oracle Politics Protocols Python Readers choice Reviews Shell Scripting Solaris Springboot Technical Telangana Telugu Tips Travelogues UNIX Web Server Websphere Windows
Powered by WidgetsForFree