Sponsored Content
Full Discussion: Mailing Script
Top Forums Shell Programming and Scripting Mailing Script Post 302539509 by Sashanth_S on Monday 18th of July 2011 03:19:51 AM
Old 07-18-2011
Mailing Script

Hi,

I am totally New to This Scripting Area.We have developed some reports in Bo and User need those reports to be sent through Unix Server (SFTP).

Can any one provide me script for transfering File from one location to other with the requirement like if that file fails to reach destination then we should receive mail like "file not reached" and if successfully reached we shud get mail like "file reached successfully".

Thanks And Regards
Sashath
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Mailing thru UNIX shell script

Hi, I need to send an email from an UNIX shell script along with an attachment. I am working on an HP-UX 11.00 system. The only mailing program which provides adding an attachment to a mail is "pine". However pine is not installed on my system and I cannot install it too due to the server being a... (2 Replies)
Discussion started by: navin
2 Replies

2. Shell Programming and Scripting

Mailing an attachment

Hi, I need to compress (zip) a flat file and mail the same as an attachment. I had tried the following piece of code. But when i open the attachment in mail, the data is incorrect (displays all junk characters). tar cf abc.tar abc.txt compress abc.tar uuencode abc.tar.Z abc1.wri | mailx -s... (0 Replies)
Discussion started by: gayath3
0 Replies

3. Shell Programming and Scripting

mailing from a shell script

Hi, This is what my script looks like: cd /var/apache/htdocs/MyApp var=`more /var/apache/htdocs/MyApp/activate` mailx -s "from MyApp" selma@mail.com <<EOT intro: -------------- $var EOT I get output that I would like to see when I invoke the script manually, this is is the... (2 Replies)
Discussion started by: Selma
2 Replies

4. Shell Programming and Scripting

Mailing Problem

I have a Unix server with SunOS 5.8 installed on it. I have set a cron job which will send mail across the two different networks. As of now i can only send mails to the abc.com who owns the server but would also like to send it to xyz.com is there any setting or parameter wherein i need to add... (2 Replies)
Discussion started by: nimish
2 Replies

5. Shell Programming and Scripting

Mailing script using loops

Hi all.. I'm not a scripter but I'm trying to set up a mail script that emails out once a file has been written to. Is there some way of writing a while read loop or something, so that it reads each line of the file and then ends when a specific number of lines have been written... We're... (2 Replies)
Discussion started by: Jazmania
2 Replies

6. Shell Programming and Scripting

Mailing script

Hi, I have a file lets say FILE1. FILE1 ------ name,age charlie,25 harry,29 david,32 Pls help me writing a mailing script.... which will mail the content of file in the body of the mail & it will look something like below in two columns. name age charlie 25 harry 29... (1 Reply)
Discussion started by: 46019
1 Replies

7. Shell Programming and Scripting

perl script for listing files and mailing the all files

Hi, I am new to perl: I need to write perl script to list all the files present in directory and mail should be come to my inbox with all the files present in that directory. advanced thanks for valuable inputs. Thanks Prakash GR (1 Reply)
Discussion started by: prakash.gr
1 Replies

8. Shell Programming and Scripting

Challenging task : script for mailing process completion timing report to users.

Hi all, This is my first post. I am new to unix scripting. My requirement is as follows : We are using a financial backoffice application. Now at the end of day we have send users a status report stating all timings of EOD processes for all countries. I need timings for following... (0 Replies)
Discussion started by: ammbhhar
0 Replies

9. Shell Programming and Scripting

Want to write a script for mailing line count

Hi all, I have a directory in which files are formed daily at certain time.files have certain naming convention for ex .. File1TTT.DATddmmyyyyhrsminsec File2TTT.DATddmmyyyyhrsminsec I want to take their line count when they are formed and mail that line count. Please help how to... (2 Replies)
Discussion started by: ammbhhar
2 Replies

10. Shell Programming and Scripting

mailing script not working

My mailing script #!/usr/bin/ksh SUBJECT="SETEMAILSUBJECT" MAIL="abc@xyz.com" MESSAGE="mail.txt" mail -s $SUBJECT $MAIL < $MESSAGE The script works fine in one server but not in another. Iam not getting any errors also in the second server. Also if i simply try echo testBody | mail... (1 Reply)
Discussion started by: blackhorse
1 Replies
SCITOOLS(1)						      General Commands Manual						       SCITOOLS(1)

NAME
scitools - run a SciTools command SYNOPSIS
scitools command [OPTIONS] DESCRIPTION
The scitools script takes a command and runs a corresponding utility. The available commands are listed below. file2interactive Utility for taking a set of Python statements in a file and creating the corresponding interactive Python shell session. floatdiff Script for examining differences in regression tests involving floating-point numbers. Used in [1]. regression Simple front-end script to SciTools' Regression module. Used in [1]. ps2mpeg Utility for turning a set of PostScript files into an MPEG movie, using mpeg_encode or ppmtompeg. profiler Script for simplifying the execution of Python's profiling tools. Used in [1]. rename Script for renaming a set of files by substituting one string or regular expression with another. subst Script for subsituting a phrase by another in a set of files. Accepts regular expressions. Treated in [1]. replace Script for subsituting a phrase by another in a set of files. Does not use regular expressions, just plain text (well suited for substituting text with much use of backslashes, curly braces, and other special characters in regular expressions (e.g., LaTeX text). movie Script for creating a movie file from a sequence of image files (frames). By default an HTML file for displaying the image (PNG) files are made. pyreport Processes a Python script and pretty prints the results using LateX. If the script uses show() commands (from scitools.easyviz) they are caught by pyreport and the resulting graphs are inserted in the output pdf. Comments lines starting with "#!" are interpreted as rst lines and pretty printed accordingly in the pdf. [1] H. P. Langtangen: Python Scripting for Computational Science. Third edition, second printing. Springer, 2009. OPTIONS
-h, --help Show usage for all commands and exit. BUGS
Send comments, questions, bug reports etc. to scitools@googlegroups.com. LICENSE
SciTools is licensed under the new BSD license. AUTHOR
SciTools is written by Hans Petter Langtangen <hpl@simula.no>, Johannes Ring <johannr@simula.no>, Ilmar Wilbers <ilmarw@simula.no>, and Rolv E. Bredesen <rolv@simula.no>. This manual page is written by Johannes Ring <johannr@simula.no>. SCITOOLS(1)
All times are GMT -4. The time now is 02:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy