Register a domain and help support LQ
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-20-2004, 02:23 AM   #1
Registered: Jul 2004
Location: Denmark, Aarhus
Distribution: Ubuntu, Suse
Posts: 98

Rep: Reputation: 15
Question 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
Old 12-20-2004, 02:38 AM   #2
Registered: Jul 2004
Location: Denmark, Aarhus
Distribution: Ubuntu, Suse
Posts: 98

Original Poster
Rep: Reputation: 15
Nevermind. Had seen the lrange function, but not the lindex.
send_user "lindex $argv 2"
sends the 3rd arguments to user. Guess that is what I should use...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing arguments to a shell script subu_s Programming 3 09-02-2005 06:13 AM
Apache passing arguments to a shell script disabled? mikeyt_333 Linux - Security 3 08-03-2004 07:09 PM
How to pass arguments from $prompt for php script ukjairaj Linux - Software 4 06-25-2004 12:14 PM
Issue with recursive script passing arguments gauge73 Linux - Newbie 0 01-06-2004 08:16 PM
Perl: Getting a script to accept arguments JStew Programming 10 03-10-2003 07:56 AM

All times are GMT -5. The time now is 05:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration