Have a look at the $argv variable.

Brian Moon
----------------------------------------------------------------------
dealnews.com, Inc.
Makers of dealnews, dealmac
http://dealnews.com/ | http://dealmac.com/


----- Original Message ----- 
From: "void" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 4:19 AM
Subject: [PHP-DEV] shell programming


> I want to send more than 9 parms to a script ..
> it doesn't like the 10th parm  :(
> asume $1 = "blue"
> ------------------- inside the script
>         .......
>         .......
>         echo $5 >> $7/lineinfo;
>         echo $8 >> $7/lineinfo;
>         echo $9 >> $7/lineinfo;
>         #the tenth parm
>         echo $10 >> $7/lineinfo;
>         #the above line outputs "blue0"
>         echo "$10" >> $7/lineinfo;
>         #the above line outputs "blue0" as well
> 
>         How do i refer 2 the 10th parm passed to a shell script ?
> 
>         any help would be apriciated,
> 
>         thanx
> 
>         Cape Town,
>         South Africa
> 
> 
> 
> 
> 
> 
> 
> -- 
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to