Before we look at the issue, could I suggest you convert this:-
.... to this:-
It is far neater and saves a few processes, which can be important if you are running this in the loop.
Additionally this:-
....becomes:-
...or perhaps:-
.... although all ways (including yours) assume that you only have a single record in the file referenced by $SecDiff.
It might also be cleaner to do the displays as a single IO write so this:-
....becomes:-
Now to your question, it partly depends on what you are sending to and how you are sending it. Can you show us the command you use? It is important to know if this is in-line text or an attachment. The flavour and version of whatever you refer to a Unix is important too as some tools can behave differently in the variations.
Hi All,
I would like to write a script which sends an email to clients.
mailx -s "TEST" $EMAIL_RECIPIENTS < FILE ...will send an email to EMAIL_RECIPIENTS with TEST as the subject and FILE as the body.
Now I have a another CONTROL_FILE which is constant all the times (FILE in the above... (1 Reply)
We are running an application engine program that sends email to a list of users. In our Test Env, users are able to receive the emails but in our Prod environment, they do not. We are running the same program, and using the same stmp config. any idea on how to troubleshoot? (3 Replies)
Hi All,
Is there any way to convert a file which is in UNIX format to a PC format....
Flip command can be used , apart form this command can we have any other way.... like usinf "awk" etc ..... main purpose of not using flip is that my Kshell doesnot support this comamnd.... (1 Reply)
Hi All,
Is there any way to convert a file which is in UNIX format to a PC format....
Flip command can be used , apart form this command can we have any other way.... like usinf "awk" etc ..... main purpose of not using flip is that my Kshell doesnot support this comamnd.... (2 Replies)
Hi All,
I have created a Unix Shell script whch creates a *.csv file and export it to Excel.
The problem i am facing is that Users wants one of the AMOUNT field in comma separted values. Example :
if the Amount has the value as 3000000 User wants to be in 3,000,000 format.
This Amount format... (2 Replies)
Hi,
I am having couple of files which i used to copy from windows to Linux, so now in case of text files (CTRL^M) appears at end of line. I know i can convert this windows format file to unix format file by running dos2unix.
My requirement here is that i want to do it automatically using a... (5 Replies)
Hi,
I prepare one backup report which drop mail with backup report.
Same report looks different in outlook 2013.
e.g : In outlook 2013 ( its a dummy example only ) :
Server Instance Database Backup Time Status
------------------- --------- --------- -------------- ----------------------... (5 Replies)
hi all.
my loop is getting failed eventhoug it is 1=1 but it is failure message.
any help plz
Output expected :
echo "sucesss"
code
out=`cat bit.txt`
if ];
then
echo "sucess"
else
echo "Failure" (2 Replies)
Hello All,
I am writing the below unix script to email the result of a small pl sql procedure:
#!/bin/bash
ORACLE_HOME=/opt/oracle/orcts/product/9.2.0; export ORACLE_HOME
SQLPLUS=$ORACLE_HOME/bin/sqlplus
sqlplus -s user/pass@Db_instance<<EOF
set echo off
set feedback off
set pages 0... (9 Replies)