LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I pass variables? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-pass-variables-770846/)

Karas 11-22-2009 03:33 PM

How do I pass variables?
 
Hi, I want to pass a variable from one script to another, I have a feeling it's extremely simple.

I looked at exporting, but apparently that clogs up the shell, so I don't want to go down that route. Any suggestions?

Thanks.

TB0ne 11-22-2009 04:37 PM

Quote:

Originally Posted by Karas (Post 3766038)
Hi, I want to pass a variable from one script to another, I have a feeling it's extremely simple.

I looked at exporting, but apparently that clogs up the shell, so I don't want to go down that route. Any suggestions?

Thanks.

You can just pass them as command-line variables, to the second script...process and use them as needed.

This tutorial:
http://tldp.org/LDP/abs/html/internal.html#EX33

should help

Karas 11-23-2009 11:55 AM

I love you =D Thanks!


All times are GMT -5. The time now is 02:48 AM.