企业绩效管理网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1896|回复: 7

Execute Process by command line

[复制链接]

70

主题

357

帖子

523

积分

高级会员

Rank: 4

积分
523
QQ
发表于 2014-6-28 11:22:59 | 显示全部楼层 |阅读模式
Hello to all!

Has anyone run a Turbo Integrator process through a command line? If yes, could provide an example?




Regards,

Alessandro
回复

使用道具 举报

91

主题

437

帖子

644

积分

高级会员

Rank: 4

积分
644
QQ
发表于 2014-6-28 12:49:56 | 显示全部楼层
Google TM1RunTI or search the forum for it.

There have been a few posts on here and IBM provided a document showing how to use it that appears up near the top of a google search.
回复 支持 反对

使用道具 举报

75

主题

409

帖子

574

积分

高级会员

Rank: 4

积分
574
QQ
发表于 2014-6-28 12:51:17 | 显示全部楼层
declanr wrote:Google TM1RunTI or search the forum for it.

There have been a few posts on here and IBM provided a document showing how to use it that appears up near the top of a google search.


I have found the document. I do not understand how to apply. I do not know if I apply the syntax in a configuration file, or via cmd ... has no more explanatory tutorial.
回复 支持 反对

使用道具 举报

76

主题

377

帖子

549

积分

高级会员

Rank: 4

积分
549
QQ
发表于 2014-6-28 14:24:03 | 显示全部楼层
Please let us know which part of the following paragraph you found difficult to understand and we will try to help.
tm1runti.pdf wrote:Parameters

Parameters can be either in a configuration file or passed on the command line.
Command line parameters take precedence over parameters that are in the
configuration file.
This makes it possible to have persistent default parameters for
relatively static parameters (such as adminhost and server) and to supply just the
few parameters needed to either override the defaults or to provide values that are
not easily defaulted, such as the user name or the TurboIntegrator process name.

The parameters have a different format when passed on the command line. While
all parameters are passed in a "-parameter_name value" fashion, everything that is
passed as "parameter_name=value" is treated as a TurboIntegrator process
parameter.

There are four types of parameters:
* Command parameters
Used to specify the config file to use, which group of connection parameters to
use, or which TurboIntegrator process to run.
* Connection parameters
Used to specify the servername, username and other information needed to
connect to a TM1 server.
* Password parameters
Can either be a username and plaintext password or can be a filename
containing an encrypted password and associated keyfile used for decryption.
* TurboIntegrator parameters
Passed to the named TurboIntegrator.

Parameters specified on the command line must begin with dash (-) or slash (/).
The parameter value is separated from the parameter name by a space, and the
value can be specified as is or in quotes (if there are embedded spaces).

For example:

tm1runti ??server MyTM1Server ??username John ??pwd "my secret"
ti_parm1=yes ti_parm2="my value"
回复 支持 反对

使用道具 举报

90

主题

419

帖子

614

积分

高级会员

Rank: 4

积分
614
QQ
发表于 2014-6-28 14:30:29 | 显示全部楼层
qml wrote:Please let us know which part of the following paragraph you found difficult to understand and we will try to help.

[quote]tm1runti.pdf wrote:Parameters

Parameters can be either in a configuration file or passed on the command line.
Command line parameters take precedence over parameters that are in the
configuration file.
This makes it possible to have persistent default parameters for
relatively static parameters (such as adminhost and server) and to supply just the
few parameters needed to either override the defaults or to provide values that are
not easily defaulted, such as the user name or the TurboIntegrator process name.

The parameters have a different format when passed on the command line. While
all parameters are passed in a "-parameter_name value" fashion, everything that is
passed as "parameter_name=value" is treated as a TurboIntegrator process
parameter.

There are four types of parameters:
* Command parameters
Used to specify the config file to use, which group of connection parameters to
use, or which TurboIntegrator process to run.
* Connection parameters
Used to specify the servername, username and other information needed to
connect to a TM1 server.
* Password parameters
Can either be a username and plaintext password or can be a filename
containing an encrypted password and associated keyfile used for decryption.
* TurboIntegrator parameters
Passed to the named TurboIntegrator.

Parameters specified on the command line must begin with dash (-) or slash (/).
The parameter value is separated from the parameter name by a space, and the
value can be specified as is or in quotes (if there are embedded spaces).

For example:

tm1runti ??server MyTM1Server ??username John ??pwd "my secret"
ti_parm1=yes ti_parm2="my value"
[/quote]


My main question is:
- As I start the procedure? Start with a file. Txt passes the parameters and saved in any specific directory?
- Parameters Step through a .bat file?
- The TM1RunTI has some interface so that I can pass these parameters?

My biggest difficulty is how to start the procedure.

Regards,

Alessandro
回复 支持 反对

使用道具 举报

57

主题

378

帖子

507

积分

高级会员

Rank: 4

积分
507
发表于 2014-6-28 15:00:28 | 显示全部楼层
Where are you trying to run it from?
If you start a Windows command prompt then navigate to the TM1 BIN install directory you can see what the parameters are and get a command line working, then put the command into a .BAT or .CMD file. If you want to run it from TM1 then I would suggest getting the .CMD working and calling it using ExecuteCommand.
回复 支持 反对

使用道具 举报

71

主题

397

帖子

558

积分

高级会员

Rank: 4

积分
558
QQ
发表于 2014-6-28 15:17:44 | 显示全部楼层
David Usherwood wrote:Where are you trying to run it from?
If you start a Windows command prompt then navigate to the TM1 BIN install directory you can see what the parameters are and get a command line working, then put the command into a .BAT or .CMD file. If you want to run it from TM1 then I would suggest getting the .CMD working and calling it using ExecuteCommand.


I'm trying to run it through a file. Bat.
My demand is running a TM1 process through a file. Bat.
I'm not able to create the correct syntax through the documents made ????available by IBM.
回复 支持 反对

使用道具 举报

82

主题

406

帖子

593

积分

高级会员

Rank: 4

积分
593
QQ
发表于 2014-6-28 15:25:10 | 显示全部楼层
Any chance of showing us your batch script? Have you tried running it manually (i.e. not from TI)? If yes, what are the results?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|企业绩效管理网 ( 京ICP备14007298号   

GMT+8, 2023-3-29 14:32 , Processed in 0.105535 second(s), 39 queries .

Powered by Discuz! X3.1 Licensed

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表