Hi ,
I want to run a shell script which is present in another user's id after switching it to that user in the same script. but it is not taking it. I m using the su command for that.
su - user1 -c "./${HOME}/script1.sh"
it just says invalid command. Please help. I need it urgently.