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 <[email protected]
> 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/>
> [email protected]
> -------------------------------------------------------------------
>
>
> 2010/7/18 ZD Yu <[email protected]>
>
> 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
>>
>
>

Reply via email to