Thanks for reply....Actaullyscript can be executed and purpose of my script is to run on other machine by first using telnet.
And only orcale can run script on remote machine.
I have to check within my code if i'm not oracle then switch to oracle user first.
I wanna know how to implement switch to oracle if i'm login as other user.
I guess system("su oracle") will simply not work.THis requires root permission and all.
Want to know how 2 implement switch to user part.
waiting for repsonse
when you log on as another user you probably don't have the file permissions to execute the script. If you are owner of the file you can give execute rights to the file using the file manager or the terminal chmod command,.e.g
chmod 711 file
the owner has read/write/execute rights and the group and other has execute rights