autosys set global viriables

http://www.unix.com/unix-advanced-expert-users/70182-autosys-variable.html

Hi All,

I need to load a file which has a date in the name. Sort of like this:
filename.20080619.dat
I created an autosys variable that has that date as the value 20080619 which name is DATEVAR
When I use that variable in the 'command' part of the job, I need to append the ".dat" next to the variable like:
command: load.sh filename.$$DATEVAR.dat

What happens? Autosys thinks my variable name is DATEVAR.dat and not DATEVAR, so the command calls the worng file name.

My question is, how do I append a text at the end of the variable? Separate the variable with quotes? double quotes?

There is a quick workaround which is adding the .dat at the end of the value, so the variable would be DATEVAR=20080619.dat , but I want to do it the other way.

 

 

sendevent -E SET_GLOBAL -G DATEVAR=20060617

I already did that. Now, how do I append a string at the end of the "calling" of the variable?

If I do this

command: touch filename.$$DATEVAR.tag
autosys will think the name of the variable is DATEVAR.tag
I want to add text at the end of the variable so that I can construct a name ... like an email, for instance:
sendevent -E SET_GLOBAL -G NAME=fabian
sendevent -E SET_GLOBAL -G SERVER=@unixforums.com

how to I call those variables together in job so that the result is
fabian@unixforums.com

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值