Thanks for the ideas but I think I failed to explain properly.
I have a script which takes the input and sets as a global variable before doing further things. The scripts works perfectly when I run it from the terminal. But I want the script to run using scheduler too. When the scheduler runs the script, it should not ask for the user input but rather take in the default value.
FYI: I do not wish for an upgrade to the beta version. My ROS is 7.11