FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 08-06-2008, 10:44 PM
Smoot Carl-Mitchell
 
Default Shell scripting...command line parameters

On Tue, 2008-08-05 at 23:53 -0700, raju wrote:

> How can i pass values passed from command lines as
>
> runtests.sh configFile=C:/test.properties test-mode=trial instead of picking
> $1 and $2

Take a look at:

man getopt

It does shell option parsing in the "standard" way. It will let you
write something like:

runtest.sh --configFile=test.properties --test-mode=trial
--
Smoot Carl-Mitchell
System/Network Architect
smoot@tic.com
+1 480 922 7313
cell: +1 602 421 9005

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 08:56 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org