Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by fcic1

  1. fcic1

    piped function does not pass variable value

    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.
  2. fcic1

    piped function does not pass variable value

    I tried to export variables, but doesn't work. ..... sleep 1 export var_1=`ls -l test1.out` sleep 1 .....
  3. fcic1

    piped function does not pass variable value

    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...
  4. fcic1

    piped function does not pass variable value

    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...

Part and Inventory Search

Back
Top