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 [email protected]

how to I call those variables together in job so that the result is
[email protected]

 

你可能感兴趣的:(autosys set global viriables)