In line
su - oracle -c "sh two.sh"
the interpreter does not know the path of the file "two.sh".
Try with an absolute path ... (e.g. sh / tmp / two.sh ").
So:
root@myServer:/tmp
hello
bla bla bla
good bye
UPDATE
Please also check that "sh" can be found by oracle ... Otherwise, specify an absolute path for "sh", too ...
source
share