Scripting Question:

Dawes, Stephen Stephen.Dawes at calgary.ca
Thu Aug 25 13:55:12 EDT 2005


That is a possibility, but I am sure that there is a more efficient way
to do it.

Steve Dawes
Phone: (403) 268-5527
Email: SDawes at calgary.ca
 

NOTICE -
This communication is intended ONLY for the use of the person or entity named above and may contain information that is confidential or legally privileged. If you are not the intended recipient named above or a person responsible for delivering messages or communications to the intended recipient, YOU ARE HEREBY NOTIFIED that any use, distribution, or copying of this communication or any of the information contained in it is strictly prohibited. If you have received this communication in error, please notify us immediately by telephone and then destroy or delete this communication, or return it to us by mail if requested by us. The City of Calgary thanks you for your attention and cooperation.

 > -----Original Message-----
> From: speakup-bounces at braille.uwo.ca 
> [mailto:speakup-bounces at braille.uwo.ca] On Behalf Of Chris Norman
> Sent: 2005 August 25 11:49 AM
> To: Speakup is a screen review system for Linux.
> Subject: Re: Scripting Question:
> 
> could you not do a loop that contines until the length is 
> reached? isn't 0 always the name of the script?
> 
> HTH, sorry I don't know more.
> 
> Chris Norman
> <!-- chris.norman4 at ntlworld.com -->
> ----- Original Message -----
> From: "Dawes, Stephen" <Stephen.Dawes at calgary.ca>
> To: "Speakup is a screen review system for Linux." 
> <speakup at braille.uwo.ca>
> Sent: Thursday, August 25, 2005 6:45 PM
> Subject: Scripting Question:
> 
> 
> Can someone tell me how to determine how many parameters are 
> passed to a
> script when the script is called?
> 
> For example a simple script called trythis:
> #!/bin/bash
> 
> Echo -e $0
> 
> And when you call the script:
> trythis 1 2 3 4 5
> 
> I get the output
> trythis
> 
> What I want to see is that 5 parameters were passed to the script.
> 
> Any suggestions?
> 
> Steve Dawes
> Phone: (403) 268-5527
> Email: SDawes at calgary.ca
> 
> 
> 
> 
> NOTICE -
> This communication is intended ONLY for the use of the person 
> or entity 
> named above and may contain information that is confidential 
> or legally 
> privileged. If you are not the intended recipient named above 
> or a person 
> responsible for delivering messages or communications to the intended 
> recipient, YOU ARE HEREBY NOTIFIED that any use, 
> distribution, or copying of 
> this communication or any of the information contained in it 
> is strictly 
> prohibited. If you have received this communication in error, 
> please notify 
> us immediately by telephone and then destroy or delete this 
> communication, 
> or return it to us by mail if requested by us. The City of 
> Calgary thanks 
> you for your attention and cooperation.
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.10.15/81 - Release 
> Date: 24/08/2005
> 
> 
> 
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.10.15/81 - Release 
> Date: 24/08/2005
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 




More information about the Speakup mailing list