Search Results

Search: Posts Made By: cj09
1,608
Posted By cj09
Got it working by modifying the JOB001.sh ...
Got it working by modifying the JOB001.sh


su - myUser<<! -c "/apps/mtr/bin/GetStatus.sh"

(am not sure what myUser<<! does but it works)
1,608
Posted By cj09
JOB001.sh: This is run as root #! /bin/bash...
JOB001.sh: This is run as root

#! /bin/bash
#
## Job name = JOB001
#
su - myUser -c "/apps/mtr/bin/GetStatus.sh"
exit $?


GetStatus.sh: This is run as myUser

#!...
1,608
Posted By cj09
Issue running script as root
1) Environment:Red Hat Linux, bash shell

Script to be run owned by user :myUser
Home environment of myUser: pathto/home

2) ESP agent with root access will run

JobXXX.sh
su - myUser -c...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 05:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy