Sponsored Content
Top Forums Shell Programming and Scripting script to find a file and send a mail Post 302135241 by lostboy1970 on Friday 7th of September 2007 04:05:36 AM
Old 09-07-2007
if [[ -f $your_file ]]; then
mailx -s "$your_file exists..." your_email_address
fi

-d will let you check if a directory exists.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

find files older than 30mins,count and send mail

Hi all, I wrote this script to find files older than time parameter, count the number of files, and send an email to me that some files are in a particular folder. For the particular path, the script should wait delay parameter before running again. For example, assuming the input file looks... (4 Replies)
Discussion started by: kayarsenal
4 Replies

2. Shell Programming and Scripting

How to attach a file & send mail thru script

In shell script how can I attach a file and send a mail. suppose if I written like the following way usr/bin/mail 'subject" "mail_id" < file. a mail goes to the mail-id with the content of file.But I want the file to be atttached to the mail.How can I get it.is there any way for this. ... (9 Replies)
Discussion started by: Mar1006
9 Replies

3. Shell Programming and Scripting

Pull E-mail address from file, send e-mail

Hello, I am new to perl and need to create a script that will read a file and pull a name from the file and send e-mail. How can I use the following awk statement in a perl script? grep UNIXadmins /root/mail.conf | awk '{ print $2}' and use the output to send a e-mail. Any help would... (1 Reply)
Discussion started by: DC Heard
1 Replies

4. UNIX for Advanced & Expert Users

Script which can send file to diffrent mail ids.

Hi i am looking for the script which can send file to different mailids, please halp me out. Thanks in advance. (3 Replies)
Discussion started by: vpandey
3 Replies

5. UNIX for Dummies Questions & Answers

How to send html file in a mail not as an attachment but it should display in the mail in table for

Hi The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment . cat Employee.sql SET VERIFY OFF SET PAGESIZE 200 SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON - HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies

6. Shell Programming and Scripting

Script Send Mail by Parameters avec Attached file

Hi i have a script for show the information files. ls -l how do you for to place this result in a file of text and to send it attached for e-mail. The information of the mail must be in paramentros. for example e-mail to I must write the e-mail, the subject and the motive of the mail! ... (1 Reply)
Discussion started by: krlos07
1 Replies

7. Shell Programming and Scripting

HELP simple script to find e-mail address on a file

Hello guys, im new to to unix/linux i have a text file like this: person1@test.com iisiiasasas person2@test.com 123w2 3233 sajsja person3@test.com jsajjsa sajsjasaj person4@test.com I want to extract only e-mail address and get rid of all other stuff, i want an output like this ... (4 Replies)
Discussion started by: RazorMX
4 Replies

8. Shell Programming and Scripting

Need Script to ZIP/SAVE & then DELETE Log file & send a mail conformation for any error

ENVIROMENT Linux: RHEL 6.4 Log Path: /usr/iplanet/servers/https-company/logs Log Format: user.log.03-15-2015 I have log4j log rotation enabled rotating files on a daily basis. The rotated logs are NOT compressed & are taking up too much space. I need a script that will run daily that... (1 Reply)
Discussion started by: admin_job_admin
1 Replies

9. Shell Programming and Scripting

How to send mail using find command?

Hello, I wanted to send mail to multiple receiptant by using uuencode with find command. I have used the below find command to search a file, which generating daily at the particular time. . find . -type f -mtime -1 -printf '%f %TH:%TM\n' | awk '$NF>"06:40" && $NF<"06:50" {print $1}' I... (2 Replies)
Discussion started by: pokhraj_d
2 Replies

10. Shell Programming and Scripting

Check file if not found send mail if exit call second script

I need to check my script and change to working mode. currently it was not sending the mail and exit without calling the second script. I need to check the file is present ="/home/Rvtools/test.csv" if this file not found after the time retry send mail file not found If the file exit run the... (2 Replies)
Discussion started by: ranjancom2000
2 Replies
IDL2ETH(1)						   The Ethereal Network Analyzer						IDL2ETH(1)

NAME
idl2eth - CORBA IDL to Ethereal Plugin Generator SYNOPSYS
idl2eth filename DESCRIPTION
idl2eth is a program that takes a user specified CORBA IDL file and generates "C" source code for an Ethereal "plugin". This resulting file can be compiled as an Ethereal plugin, and used to monitor GIOP/IIOP traffic that is using this IDL. idl2eth is actually a shell script wrapper for two Python programs. These programs are: ethereal_be.py - Contains the main IDL Visitor Class ethereal_gen.py - Contains the Source Code Generator Class idl2eth supports heuristic dissection of GIOP/IIOP traffic, and some experimental code for explicit dissection, based on Object Key <-> Repository Id mapping. However, code for heuristic based plugins is generated by default, and users should consider this the preferred method unless you have some namespace collisions. OPTIONS
Currently there are no options. idl2eth can be invoked as follows. 1. To write the C code to stdout. idl2eth <your_file.idl> eg: idl2eth echo.idl 2. To write to a file, just redirect the output. idl2eth echo.idl > packet-test.c ENVIRONMENT
idl2eth will look for ethereal_be.py and ethereal_gen.py in $PYTHONPATH/site-packages/ and if not found, will try the current directory ./ The -p option passed to omniidl (inside idl2eth) indicates where ethereal_be.py and ethereal_gen.py will be searched. This may need tweak- ing if you place these files somewhere else. If it complains about being unable to find some modules (eg tempfile.py), you may want to check if PYTHONPATH is set correctly. eg: PYTHONPATH=/usr/lib/python1.5/ SEE ALSO
ethereal(1) NOTES
idl2eth (including ethereal_be.py and ethereal_gen.py) are part of the Ethereal distribution. The latest version of Ethereal can be found at http://www.ethereal.com. idl2eth uses omniidl, and IDL parser, and can be found at http://www.uk.research.att.com/omniORB/omniORB.html TODO
Some of the more important things to do are: o Improve Explicit dissection code. o Improve command line options. o Improve decode algorithm when we have operation name collision. AUTHORS
Original Author -------- ------ Frank Singleton <frank.singleton@ericsson.com> Contributors ------------ 0.9.8 2002-03-28 IDL2ETH(1)
All times are GMT -4. The time now is 01:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy