Executing unix command �echo $0� using Runtime.exec()
843798Jan 12 2006 — edited Jan 13 2006I use jdk1.5 and SunOS.
When I tried executing the command �echo $0� using Runtime.exec() in my java program, I got the out put as $0.
But when you execute the command �echo $0� on the SunOS shell, it prints the current running shell name. ex. bash.
Please let me know the solution for the above problem.
Thank you.
Vinod H.