Calling shell script from Dial plan

Hi,

I Created one java program, which will create one text file and that java file I am executing it from some shell script.

some thing like this:

#!/bin/sh
#java /tmp/CreateFile1
java -classpath /tmp/ CreateFile1

the above shell script I am planning to call from dial plan by using System() command.

I am able to call the shell scipt but Java file is not creating text file and it is noe showing any error also.

please suggest…if any idea

My first thought is that the Path isn’t the same as your shell, and when you call System() to invoke the shell script, it cannot find the java binary.

Try changing the shell script to use an absolute path to both the java binary and the Java class file.
-P

Thanks for the suggestion and it is working fine.