No, the program does not run continuously, when it it launched using the command line, it launches and returns a string (some address). I am capturing the returned value in the script. When I use the same function in another perl script, it is working fine.. . I am running the script in linux.