I tried but doesn't work.
Of course if I do: export var_1=`ls -l test1.out`
before calling the function will always show the file from the host I'm running from the script, not fom the one I want to telnet to.
Hi! I am a beginer in shell scripting and I have the following problem: I define a variable inside a function, but when i use the function with a pipe, i can't get the variable's value in main program.
How can i do to have the variable value after it exits the function? or any other idea how can...
Hi! I am a beginer in shell scripting and I have the following problem: I define a variable inside a function, but when i use the function with a pipe, i can't get the variable's value in main program.
How can i do to have the variable value after it exits the function? or any other idea how can...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.