Sponsored Content
Top Forums Shell Programming and Scripting need help in finding a string and to send an email using shell script Post 302167856 by ranga27 on Friday 15th of February 2008 04:23:57 PM
Old 02-15-2008
pub 5858D/58585255EF 2007-10-02 unicorn01516008 <uniccrn@fund.com>
sub 452659g/97974545df 2007-10-02 [expires: 2008-06-22]

They are in seperate lines but if it searches for expires , it has to get this result (unicorn01516008 <uniccrn@fund.com>) as they are interrelated

and all these informations are loaded in some output files xxx.txt
 

10 More Discussions You Might Find Interesting

1. Solaris

Shell script to send email alert for core dump

Friends, I am in search for a shell script that is capable of running as a cronjob and have to send out an email when ever there is a CORE DUMP. Please post the hints to achieve my goal. Thanks in advance. (1 Reply)
Discussion started by: rtatineni
1 Replies

2. Shell Programming and Scripting

How to write a shell script to send an email to an id

Hi all, I want to know how to send an email using shell script ..... I tried a command call mail but it did not work.. Please any one reply.. With example if you know thanks.. Madhu (4 Replies)
Discussion started by: madhumathikv
4 Replies

3. Shell Programming and Scripting

make un shell script to send email

Hi, Someone Knows how to obtein a chain from a unix file, but not all the line, for exemple, for this file ,obtein only 902111111 and to keep the value, this value will be used to make a mailx. NF=ALL, SUBJ= FROM: SN=CD, SE=TOPCALL, NA=, N=902111111, N=TCLFI TO: SE=FAX, NA=, C1=... (0 Replies)
Discussion started by: peybol
0 Replies

4. Shell Programming and Scripting

How to send email once a day at certain time in unix shell script

hi, i have to send an email once a day at ceratin time say 22. i have tried with date commad, but not working.:( HOUROFTHEDAY=`date +'%H'` if ; then mailx -s "Info" emailid@org.com < $ProcessStatisticsFile fi Please help me... (5 Replies)
Discussion started by: sreelu
5 Replies

5. Shell Programming and Scripting

How to send email through shell script

Hi All, I am new to the unix , i have to deliver one script very urgently I have to write a shell script where i have i want to send email to specific email id in this script i want FROM to be parameterized and stored in a variable TO to be parameterized and stored in a variable... (3 Replies)
Discussion started by: nileshbhawsar
3 Replies

6. Shell Programming and Scripting

Script to send email after comparing the folder permissions to a certain permission & send email

Hello , I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them . I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Discussion started by: nairshar
2 Replies

7. Shell Programming and Scripting

Shell script to send an email from the txt file

Hi Friends, Could you guys help me out of this problem... I need to send an email to all the users and the email has to be picked from the text file. text file contains the no. of records like: giridhar 224285 847333 giridhar276@gmail.com ramana 84849 33884 venkata.ramana@gmail.com... (6 Replies)
Discussion started by: giridhar276
6 Replies

8. Shell Programming and Scripting

Help with shell script to send email once

Hi Guys, I have this script which will monitor oracle db process if up or down.And I want it to send email if it's down and the time it's back to online. However my script just keep on sending "Email Up" if the db is up or "Email Down" if the db is down.Is there any way to trap it so that it... (5 Replies)
Discussion started by: d3xt3r
5 Replies

9. Shell Programming and Scripting

how to send html email from shell script

This is my below script which is working fine as it send only plain text email. So My question is- How can I modify my below script to send this as an HTML formatted email? I want to show the text color of this expression `(echo "100*$TEST2/$TEST1" | bc -l)` as `RED` in an email and that can be... (3 Replies)
Discussion started by: raihan26
3 Replies

10. Shell Programming and Scripting

Need command to capture word from shell script and send email

Hello Experts, Greeting to all of you. I have a requirement, that we have a shell script status.sh that check the status of server and server status shows as status.sh Enterprise Server - Running Admin Server - Shutdown Requirement is like whenever the output shows shutdown it should... (2 Replies)
Discussion started by: aks_1902
2 Replies
BACKUP_LISTDUMPS(8)					       AFS Command Reference					       BACKUP_LISTDUMPS(8)

NAME
       backup_listdumps - Displays the dump hierarchy from the Backup Database

SYNOPSIS
       backup listdumps [-localauth] [-cell <cell name>] [-help]

       backup listd [-l] [-c <cell name>] [-h]

DESCRIPTION
       The backup listdumps command displays the dump hierarchy from the Backup Database.

OPTIONS
       -localauth
	   Constructs a server ticket using a key from the local /etc/openafs/server/KeyFile file. The backup command interpreter presents it to
	   the Backup Server, Volume Server and VL Server during mutual authentication. Do not combine this flag with the -cell argument. For more
	   details, see backup(8).

       -cell <cell name>
	   Names the cell in which to run the command. Do not combine this argument with the -localauth flag. For more details, see backup(8).

       -help
	   Prints the online help for this command. All other valid options are ignored.

OUTPUT
       The output displays the complete dump hierarchy and indicates the relationship between full and incremental dump levels. Full dump levels
       appear at the left margin. The hierarchy can include more than one full dump level; each one defines a subhierarchy of dump levels that can
       be used for dumping different volume sets.

       Incremental dump levels appear below and indented to the right of their parent dump levels, which can be either full or incremental. Since
       multiple incremental dump levels can share the same parent, an incremental dump level is not always directly below its parent; the amount
       of indentation indicates the parent/child relationship.

       If a dump level has an associated expiration date, it appears along with the level name. Absolute expiration dates appear in the format

	  <dump_level> expires at <day month date time year>

       and relative expiration dates in the format

	  <dump_level> expires in {<years>y | <months>m | <days>d}

       to indicate the number of years, months, days, or combination of the three after creation a dump expires when created at this level.

EXAMPLES
       The following example depicts six dump hierarchies. The expiration date for all incremental dump levels is 13 days so that the
       corresponding tapes can be recycled two weeks after their creation. The expiration dates for all full dump levels is 27 days so that the
       corresponding tapes can be recycled four weeks after their creation.

	  % backup listdumps
	  /week1  expires in  27d
		/tuesday  expires in  13d
			/thursday  expires in  13d
		/sunday  expires in  13d
		       /tuesday expires in  13d
			       /thursday expires in  13d
	  /week3  expires in  27d
		/tuesday  expires in  13d
			/thursday  expires in  13d
		/sunday  expires in  13d
		       /tuesday  expires in  13d
			       /thursday  expires in  13d
	  /sunday1  expires in	27d
		  /monday1  expires in	13d
		  /tuesday1  expires in  13d
		  /wednesday1  expires in  13d
		  /thursday1  expires in  13d
		  /friday1  expires in	13d
	  /sunday2  expires in	27d
		  /monday2  expires in	13d
		  /tuesday2  expires in  13d
		  /wednesday2  expires in  13d
		  /thursday2  expires in  13d
		  /friday2  expires in	13d
	  /sunday3  expires in	27d
		  /monday1  expires in	13d
		  /tuesday1  expires in  13d
		  /wednesday1  expires in  13d
		  /thursday1  expires in  13d
		  /friday1  expires in	13d
	  /sunday4  expires in	27d
		  /monday2  expires in	13d
		  /tuesday2  expires in  13d
		  /wednesday2  expires in  13d
		  /thursday2  expires in  13d
		  /friday2  expires in	13d

PRIVILEGE REQUIRED
       The issuer must be listed in the /etc/openafs/server/UserList file on every machine where the Backup Server is running, or must be logged
       onto a server machine as the local superuser "root" if the -localauth flag is included.

SEE ALSO
       backup(8), backup_adddump(8), backup_deldump(8)

COPYRIGHT
       IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.

       This documentation is covered by the IBM Public License Version 1.0.  It was converted from HTML to POD by software written by Chas
       Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.

OpenAFS 							    2012-03-26						       BACKUP_LISTDUMPS(8)
All times are GMT -4. The time now is 03:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy