Hope someone can help with this relatively easy problem.
I am trying to create a Tivoli task that will run the following command:
wdmlseng -e <endpoint_label> -verbose
I can create the script (wdmlseng.sh) which runs quite happily from the command line from an already sourced Tivoli command prompt. However, the problem I have is that when I put it into a task, it always fails.
I know that this is because the environment isn't sourced when the script is run. The question is, how do I source the environment?
My script looks like this:
#!/bin/sh
c:\winnt\system32\drivers\etc\Tivoli\setup_env.sh
wdmlseng -e $1 -verbose
exit0
Can anyone throw any light on why this will not run from a task, but will run from a sourced environment.
Thanks in advance
blx
I am trying to create a Tivoli task that will run the following command:
wdmlseng -e <endpoint_label> -verbose
I can create the script (wdmlseng.sh) which runs quite happily from the command line from an already sourced Tivoli command prompt. However, the problem I have is that when I put it into a task, it always fails.
I know that this is because the environment isn't sourced when the script is run. The question is, how do I source the environment?
My script looks like this:
#!/bin/sh
c:\winnt\system32\drivers\etc\Tivoli\setup_env.sh
wdmlseng -e $1 -verbose
exit0
Can anyone throw any light on why this will not run from a task, but will run from a sourced environment.
Thanks in advance
blx