HI all
I am calling a script "b" from script "a". In script "a", i connect to database and get month and year. I have to pass these same values to script b. How can i do that. How can i pass parameters from one script to another
HI all
I am calling a script "b" from script "a". In script "a", i connect to database and get month and year. I have to pass these same values to script b. How can i do that. How can i pass parameters from one script to another
export the variables
export a=100
and all child processes will be able to use a
if i export variable with name "K", that will be placed in environment file and i can use it.
but after the first script "a" executes, i will export the variable and the script "a" may run for days and after some days script "b" will be executed form "a". In the mean time, if others export their own variable with the same name, will it be overwritten and dont i lose the variables value
It will not be overwritten. Variables will be available only to the session where it is declared and only for the current and sub shells