[15:58:26] Hi everyone!!! [15:58:27] I wanted to send an email if I find my service not running, and to achieve this I am using this command [15:58:28] ``` [15:58:30] -e "Subject: Test message subject\n\nTest message" | /usr/sbin/exim -odf -i tools.example@toolforge.org``` [15:58:31] [15:58:33] [15:58:34] But I don't find this command working. Can anyone help me here? [16:03:03] please clarify what do you mean by "not working" - do you get any errors etc? [16:05:01] Probably easier to use mailx instead of trying to start exim (re @Ankit18gupta: Hi everyone!!! [16:05:01] I wanted to send an email if I find my service not running, and to achieve this I am using this command [16:05:03] [16:05:04] -e "Subj...) [16:15:36] I am trying to run it on crontab, but it doesn't send the mail as expected. Speaking about errors I don't know where the error should appear. (re @wmtelegram_bot: please clarify what do you mean by "not working" - do you get any errors etc?) [16:15:53] have you tried running it manually? [16:16:11] Nope. just on the server (re @wmtelegram_bot: have you tried running it manually?) [16:17:06] well I'd try to see if it works outside crontab as a first step [16:31:20] I tried running it outside, i niether found an error nor the email in my inbox (re @wmtelegram_bot: well I'd try to see if it works outside crontab as a first step) [16:33:11] Any documentation for the same for help? (re @MaartenDammers: Probably easier to use mailx instead of trying to start exim) [16:34:42] what's your tool name? [16:35:20] edit-wizard [16:35:21] Also when I insert my personal mail ID, it works (re @wmtelegram_bot: what's your tool name?) [16:36:13] Did you have a look at the man page? (re @Ankit18gupta: Any documentation for the same for help?) [16:39:27] you don't seem to actually have an email address set on your developer account, which is why the tool alias can't deliver emails to you. please set one on https://wikitech.wikimedia.org/wiki/Special:ChangeEmail [17:00:59] It was running fine outside, but I didnt find an email from crontab, below given is the code I am using in crontab [17:01:00] [17:01:01] ``` [17:01:03] */15 * * * * jsub -quiet -N job-MIS -mem 900m node Edit-Request-Wizard/Backend/check-if-service-is-up.js``` [17:01:04] (re @wmtelegram_bot: you don't seem to actually have an email address set on your developer account, which is why the tool alias can't delive...) [17:43:39] your command is probably missing something from the start, since '-e' in itself is not a valid command [17:44:06] and you should capture any output the exec'd command returns, in case it has any errors [18:31:59] thanks... its running fine now (re @wmtelegram_bot: your command is probably missing something from the start, since '-e' in itself is not a valid command)