SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Off-line scripts

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Off-line scripts
Author Message
Angelo Amodio



Joined: 04 Oct 2004
Posts: 5

Post Off-line scripts Reply with quote

Hello,
We have some tens of scripts, stored in the in-line mode.
Now we would like to store them using the off-line mode.
When a macro-parameter is found, the scheduler fails; when the same script is in the in-line mode it works fine.
Is it a bug or we are missing some info?

Thanks,
Angelo Amodio
FMR Spazio

Wed Sep 07, 2005 11:54 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: Off-line scripts Reply with quote

Please provide an example, so we can see what you are trying to do and can help you to correct the problem.

: Hello,
: We have some tens of scripts, stored in the in-line mode.
: Now we would like to store them using the off-line mode.
: When a macro-parameter is found, the scheduler fails; when the same script is
: in the in-line mode it works fine.
: Is it a bug or we are missing some info?

: Thanks,
: Angelo Amodio
: FMR Spazio

Wed Sep 07, 2005 12:19 pm View user's profile Send private message
Angelo Amodio



Joined: 04 Oct 2004
Posts: 5

Post Re: Off-line scripts Reply with quote

: Please provide an example, so we can see what you are trying to do and can
: help you to correct the problem.

The in-line script contains the simple line "MessageBox @W".
Once executed, it correctly displays the day of week.

If the in-line script contains "@SCRIPT:c:\sample.jal" and the file c:\sample.jal contains the same line "MessageBox @W", it simply displays "@W", like if the macro were not expanded.
This happens with any parameter substitution.

Thanks,
Angelo Amodio

Thu Sep 08, 2005 4:06 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: Off-line scripts Reply with quote

That's correct. There is no recursive processing. @SCRIPT macro works just like @W. The referenced value or text is inserted only once. That's why you cannot use macro parameters with off-line scripts.

As a workaround use a different method to obtain day of week value, for example,

Dim dow, number
Dim d, date

Today d
DayNumber d, dow

MessageBox dow

By the way, what's the reason to use off-line scripts? Why don't you want to use the script library instead?

: The in-line script contains the simple line "MessageBox @W".
: Once executed, it correctly displays the day of week.

: If the in-line script contains "@SCRIPT:c:\sample.jal" and the file
: c:\sample.jal contains the same line "MessageBox @W", it simply
: displays "@W", like if the macro were not expanded.
: This happens with any parameter substitution.

: Thanks,
: Angelo Amodio

Thu Sep 08, 2005 7:43 am View user's profile Send private message
Angelo Amodio



Joined: 04 Oct 2004
Posts: 5

Post Re: Off-line scripts Reply with quote

: By the way, what's the reason to use off-line scripts? Why don't you want to
: use the script library instead?

Because I think that the off-line method is better to keep the scripts under CVS and configuration control.
We tipically use macros to name some files with their creation date.

Regards,
Angelo

Thu Sep 08, 2005 9:38 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.