LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Script arguments (http://www.linuxquestions.org/questions/programming-9/script-arguments-268285/)

jnusa 12-20-2004 01:23 AM

Script arguments
 
I'm using a expect sciprt, that currently use only 1 arguments (fetched by $argv var). I have modified it, and I need it to take several arguments (could be 2 or could be maybe 5 arguments). Could anyone point me in the right direction.
Regards jnusa

jnusa 12-20-2004 01:38 AM

Nevermind. Had seen the lrange function, but not the lindex.
e.g.
Code:

send_user "lindex $argv 2"
sends the 3rd arguments to user. Guess that is what I should use...


All times are GMT -5. The time now is 07:42 AM.