Sponsored Content
Top Forums Shell Programming and Scripting Send an email if "No such file or directory" in the shell script program log in EBS concur Post 303035563 by MadeInGermany on Tuesday 28th of May 2019 09:31:42 AM
Old 05-28-2019
Code:
echo "$log" | mailx -s "ERROR" user@domain

But the problem will remain: both mutt and mailx need a working SMTP mail service.
 

9 More Discussions You Might Find Interesting

1. AIX

"too big" and "not enough memory" errors in shell script

Hi, This is odd, however here goes. There are several shell scripts that run in our production environment AIX 595 LPAR m/c, which has sufficient memory 14GB (physical memory) and horsepower 5CPUs. However from time to time we get the following errors in these shell scripts. The time when these... (11 Replies)
Discussion started by: jerardfjay
11 Replies

2. Shell Programming and Scripting

Shell script: If a file stays in a particular directory more than 30 min send an email

Hi , I am new to shell scripting. i have a requirement say i will receive a file in a directory say /xyz.if that file stays in that directory more than 30 min i need to get a mail to my outlook.this should run for every 20 min in crontab. can anyone help me? (8 Replies)
Discussion started by: muraliinfy04
8 Replies

3. UNIX for Advanced & Expert Users

how to send email using "mail" to google or yahoo

hi all, i need to email the output of a command to a google or yahoo account. am using debian lenny 5. can someone please help me on this ? (5 Replies)
Discussion started by: coolatt
5 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. UNIX for Dummies Questions & Answers

script works well but displays " line 6: =: No such file or directory"

strange :) can you tell why?:cool: #!/bin/bash echo " enter your age " read age if ; then echo " you do not have to pay tax " elif ]; then echo " you are eligible for income tax " else echo " you dont have to pay tax " fi (3 Replies)
Discussion started by: me.
3 Replies

6. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

7. Shell Programming and Scripting

Expect: spawn id exp5 not open while executing "expect "$" { send "sudo su -\r" }"

Hi All, i am trying to ssh to a remote machine and execute certain command to remote machine through script. i am able to ssh but after its getting hung at the promt and after pressing ctrl +d i am gettin the out put as expect: spawn id exp5 not open while executing "expect "$" {... (3 Replies)
Discussion started by: Siddharth shivh
3 Replies

8. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

9. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
NOTMUCH-MUTT(1) 					User Contributed Perl Documentation					   NOTMUCH-MUTT(1)

NAME
notmuch-mutt - notmuch (of a) helper for Mutt SYNOPSIS
notmuch-mutt [OPTION]... search [SEARCH-TERM]... notmuch-mutt [OPTION]... thread < MAIL notmuch-mutt [OPTION]... tag [TAGS]... < MAIL DESCRIPTION
notmuch-mutt is a frontend to the notmuch mail indexer capable of populating a maildir with search results. OPTIONS
-o DIR --output-dir DIR Store search results as (symlink) messages under maildir DIR. Beware: DIR will be overwritten. (Default: ~/.cache/notmuch/mutt/results/) -p --prompt Instead of using command line search terms, prompt the user for them (only for "search"). -h --help Show usage information and exit. INTEGRATION WITH MUTT
notmuch-mutt can be used to integrate notmuch with the Mutt mail user agent (unsurprisingly, given the name). To that end, you should define macros like the following in your Mutt configuration (usually one of: ~/.muttrc, /etc/Muttrc, or a configuration snippet under /etc/Muttrc.d/): macro index <F8> "<enter-command>unset wait_key<enter><shell-escape>notmuch-mutt --prompt search<enter><change-folder-readonly>~/.cache/notmuch/mutt/results<enter>" "notmuch: search mail" macro index <F9> "<enter-command>unset wait_key<enter><pipe-message>notmuch-mutt thread<enter><change-folder-readonly>~/.cache/notmuch/mutt/results<enter><enter-command>set wait_key<enter>" "notmuch: reconstruct thread" macro index <F6> "<enter-command>unset wait_key<enter><pipe-message>notmuch-mutt tag -inbox<enter>" "notmuch: remove message from inbox" The first macro (activated by <F8>) prompts the user for notmuch search terms and then jump to a temporary maildir showing search results. The second macro (activated by <F9>) reconstructs the thread corresponding to the current mail and show it as search results. The third macro (activated by <F6>) removes the tag "inbox" from the current message; by changing "-inbox" this macro may be customised to add or remove tags appropriate to the users notmuch work-flow. To keep notmuch index current you should then periodically run "notmuch new". Depending on your local mail setup, you might want to do that via cron, as a hook triggered by mail retrieval, etc. SEE ALSO
mutt(1), notmuch(1) AUTHOR
Copyright: (C) 2011-2012 Stefano Zacchiroli <zack@upsilon.cc> License: GNU General Public License (GPL), version 3 or higher perl v5.14.2 2012-06-02 NOTMUCH-MUTT(1)
All times are GMT -4. The time now is 07:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy