Sponsored Content
Full Discussion: mailing from a shell script
Top Forums Shell Programming and Scripting mailing from a shell script Post 71837 by Selma on Monday 16th of May 2005 09:51:18 AM
Old 05-16-2005
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 contents of the mail:

intro:
--------------
123
456

However when invoked from cron the mail that I get looks like this:

intro:
--------------
::::::::::::::
/var/apache/htdocs/MyApp/activate
::::::::::::::
123
456

Why is this happening? How can I fix this?
TIA,

Selma
 

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 in Korne shell

All Iam using Korne shell in AIX OS. Can u give me the syntax to send a mail. Thanx in advance Regards Deepak (5 Replies)
Discussion started by: DeepakXavier
5 Replies

3. 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

4. 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

5. 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

6. 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

7. 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

8. Shell Programming and Scripting

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... (4 Replies)
Discussion started by: Sashanth_S
4 Replies

9. 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

10. UNIX for Advanced & Expert Users

Regarding mailing of logs

Hi Folks, I have an application which logs get continuously refreshed and made after every 1 second , I want that those logs get mailed to me at my email id sara@somewhere.com The location is cd /var/log/abc/log Please advise the command so that I can mail abc.log at my mailid inbox... (2 Replies)
Discussion started by: SankalpS
2 Replies
TITANIUM-STARTER(1p)					User Contributed Perl Documentation				      TITANIUM-STARTER(1p)

NAME
titanium-starter - creates a skeleton Titanium project SYNOPSIS
titanium-starter --module=MyApp --author="Jaldhar H. Vyas" --email=jaldhar@braincells.com Result: MyApp MyApp/Changes MyApp/lib MyApp/lib/MyApp.pm MyApp/LICENSE MyApp/Makefile.PL MyApp/MANIFEST.SKIP MyApp/MANIFEST MyApp/README MyApp/server.pl MyApp/share/templates MyApp/share/templates/runmode1.html MyApp/t MyApp/t/00-signature.t MyApp/t/01-load.t MyApp/t/boilerplate.t MyApp/t/test-app.t MyApp/t/www MyApp/t/www/PUT.STATIC.CONTENT.HERE MyApp/xt MyApp/xt/perlcriticrc MyApp/xt/perl-critic.t MyApp/xt/pod-coverage.t MyApp/xt/pod.t Options: --module=module Module name --dir=dirname Directory name to create new module in (optional) --builder=module Build with 'ExtUtils::MakeMaker' or 'Module::Build' --eumm Same as --builder=ExtUtils::MakeMaker --mb Same as --builder=Module::Build --mi Same as --builder=Module::Install --author=name Author's name (required) --email=email Author's email (required) --license=type License under which the module will be distributed (default is the same license as perl) --verbose Print progress messages while working --force Delete pre-existing files if needed --help Show this message DESCRIPTION
Set up the skeleton of a Titanium-based project, including a module, some templates and some automated tests. By default the skeleton files will come within a shared directory where Module::Starter::Plugin::CGIApp is stored. See File::ShareDir for more information on how this works. CONFIGURATION
titanium-starter will look for a configuration file before reading its command line parameters. The default location is "$HOME/.module-starter/config" but if the MODULE_STARTER_DIR environment variable is set, titanium-starter will look for "config" in that directory. The configuration file is just a list of names and values, separated by colons. Values that take lists are just space separated. A sample configuration file might read: author: Jaldhar H. Vyas email: jaldhar@braincells.com template_dir: ~/.module-starter/cgiapp/templates colors: red green blue This format may become more elaborate in the future, but a file of this type should remain valid. perl v5.14.2 2012-05-26 TITANIUM-STARTER(1p)
All times are GMT -4. The time now is 12:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy