[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Notification :- setting "notify_user" as variable not working



ok. So, how can I use dynamicÂemail address instead of a static one? How to use text substitution ?

Thanks,
Gagan

On Fri, Jan 6, 2023 at 9:44 PM Todd L Miller via HTCondor-users <htcondor-users@xxxxxxxxxxx> wrote:
>Â Â Â Â Â Â Â ÂI don't want to use a static string as notify_user
> because many users run jobs and they have different email addresses. So, I
> need to use it as a variable in the submit file to achieve that. And
> *"$(emailid)"*Â is the way to specify variable in the submit file.
> But somehow it's not working as expected.

    `$(emailid)` asks HTCondor to substitute the value of the submit
file command (or job ad attrbute) `emailid`. Your Python fragment does
not set either of these. There is no way to refer to a Python variable
from an HTCondor submit file; you must use a text substitution, like Cole
suggested.

- ToddM
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/