incubator-olio-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vasileios Kontorinis <bkontori...@gmail.com>
Subject Re: running Olio driver from command line
Date Mon, 19 Jul 2010 07:39:22 GMT
Nice tip. Appreciated.

Thanks
-------------------------------------------------------------------
Kontorinis Vasileios
Phd student, University of California San Diego
http://cseweb.ucsd.edu/~vkontori/
bkontorinis@gmail.com
-------------------------------------------------------------------


2010/7/19 Xavier Dutreilh <xavier.dutreilh@midgar.fr>

> Vasileios,
>
> Just for your information, you can add the -x parameter at the first line
> of your script to print all commands before they get run.
> #!/bin/sh -x
>
> /home/<user>/faban.1.0.1/faban/bin/fabancli submit OlioDriver default
> /home/<user>/faban.1.0.1/faban/config/profiles/default/run.xml.OlioDriver
>
> (-e is also good to kill a script when the return code of a command is not
> 0, but applying this to 1-command script does not make sense ;-))
>
> Regards,
>
> Xavier
>
>
> On Mon, Jul 19, 2010 at 6:33 AM, Vasileios Kontorinis <
> bkontorinis@gmail.com> wrote:
>
>> ZD,
>>    Yes, it is doable and pretty easy actually. The way I do it is through
>> fabancli (faban command line interface).
>> Check http://faban.sunsource.net/1.0/docs/man/fabancli.html
>>
>> Here is a simple script to automate the process
>> #!/bin/sh
>> cmd='/home/<user>/faban.1.0.1/faban/bin/fabancli submit OlioDriver default
>> /home/<user>/faban.1.0.1/faban/config/profiles/default/run.xml.OlioDriver'
>> echo $cmd
>> $cmd
>>
>> It required that you have first run a faban through the web interface and
>> created a "default" profile.
>>
>> Bottom line: fabancli submit  is what you are after and I wrote the above
>> so that I do not have to type a lot every time a submit a run.
>> In order to change the configuration now you need to manually change the
>> configuration xml file.
>>
>> Hope this is clear.
>> -------------------------------------------------------------------
>> Kontorinis Vasileios
>> Phd student, University of California San Diego
>> http://cseweb.ucsd.edu/~vkontori/ <http://cseweb.ucsd.edu/%7Evkontori/>
>> bkontorinis@gmail.com
>> -------------------------------------------------------------------
>>
>>
>> 2010/7/18 ZD Yu <zdyu2000@gmail.com>
>>
>> I undertand that Olio is developed based on Faban, and there is a browser
>>> based UI to configure and run the workload. But due to some special reason,
>>> I also want to run the workload from command line. Is it doable?
>>>
>>> Thanks, ZD
>>>
>>
>>
>

Mime
View raw message