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, 06:53 AM
raju
 
Default Shell scripting...command line parameters

Hi,

i am calling following ant command from shell script:
ant -f "build.xml" runtests -DconfigFile=$1 -Dtest-mode=$2

$1 and $2 are passed to shell script from comand line and bot are
optional.These are used by ant target "runtests".

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

Regards
Raj
--
View this message in context: http://www.nabble.com/Shell-scripting...command-line-parameters-tp18845390p18845390.html
Sent from the ubuntu-users mailing list archive at Nabble.com.


--
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 09:43 AM.

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