04-29-2014
Create function
I would like to make a perl function , this function could send mail via SMTP and also could import a text file into mail content , that mean I have a text file , want to use this function to send mail via SMTP , the mail content is the text file , would advise how to write this script ? thanks
10 More Discussions You Might Find Interesting
1. HP-UX
Hello,
J create a thread C with a JNI function via JAVA.
J have the following message (but not in each time):
Someone has an idea ?
Thank.
Unexpected Signal : 4 occurred at PC=0x78C103E0
Function=
Library=(N/A)
NOTE: We are unable to locate the function name... (0 Replies)
Discussion started by: AUBERT
0 Replies
2. Shell Programming and Scripting
HI,
I have a file which i catenate and using the fields in the file, I would like to get sqrt of it. I tried to man the function but it normally would need an echo as well as bc.
What I am intending to find out is catenate a file where let say
cat a.txt| awk ' {
t= h*($3+$2);
t=... (7 Replies)
Discussion started by: ahjiefreak
7 Replies
3. Shell Programming and Scripting
hi all,
i print four variable delimited by comma with awk :
awk -F "," '{print $1;$2;$3;$4}'
'
if $3=""
code ...
}
i want to extract this information from another file using another awk using the $1 printed
awk -v
{
code
}
but the problem i can't use two awk in the same code... (2 Replies)
Discussion started by: kamel.seg
2 Replies
4. Programming
hi all,
my requirement is to create a thread by calling another function.
i.e i dont call pthread_create directly from main, but by calling another function (createThd - below ), from main.
Example:
void *thread_function(void *arg) { /* thread function */
int i;
rc =... (3 Replies)
Discussion started by: wolwy_pete
3 Replies
5. Shell Programming and Scripting
Hi ,
I have three funcions f1, f2 and f3 .
f1 calls f2 and f2 calls f3 .
I have a global variable "period" which i want to pass to f3 .
Can i pass the variable directly in the definition of f3 ?
Pls help .
sars (4 Replies)
Discussion started by: sars
4 Replies
6. UNIX for Dummies Questions & Answers
Hi,
In Unix (AIX/LINUX) how do we create a alias for a UNIX shell function?
Please help me with that.
Thanks!! (2 Replies)
Discussion started by: neeto
2 Replies
7. Shell Programming and Scripting
I write a small shell script create Payroll System my trouble is valid format birthday dd-mm-yyyy when you enter birthday if your value enter not match with format dd-mm-yyyy system will display "Fail Format Please re-enter Birthday with format dd-mm-yyyy" but i don't know how create function... (3 Replies)
Discussion started by: kency
3 Replies
8. Shell Programming and Scripting
My Calling script is like below:
for file in `echo $LIST_OF_FILES` --listing filenames eg, xyz_meta_20110501_00000789.tar
do
file_name=`basename $file`
<call a function to create .txt file in below format>
done
Want to generate a .txt file that contains below data in ksh:
... (3 Replies)
Discussion started by: vedanta
3 Replies
9. Programming
sinebeep.py
Creating an audio WAVE file called...
beep.wav
...that can be played using almost ANY audio player available.
This simple DEMO snippet of code generates a 1 second sinewave WAVE file. It IS saved inside the CURRENT drawer so that you can find it... ;o)
Note that the... (1 Reply)
Discussion started by: wisecracker
1 Replies
10. Shell Programming and Scripting
I am trying to create a bash script that will create new function by using the user input. The below will create the necessary files in the correct format, however when it comes to the # create function I am at a loss.
If the name entered was NEWNAME and the genes were GENE1,GENE2 then two files... (0 Replies)
Discussion started by: cmccabe
0 Replies
LEARN ABOUT ULTRIX
mhmail
mhmail(1mh) mhmail(1mh)
Name
mhmail - send or read mail
Syntax
mhmail [ addrs ... ] [ options ]
Description
The program is intended as a replacement for the standard mail programs, and See and for more details of these mail programs. When invoked
without arguments, it simply invokes to incorporate new messages from the user's maildrop. When one or more users is specified, a message
is read from the standard input and spooled to a temporary file. then invokes with the name of the temporary file as its argument to
deliver the message to the specified user.
Normally, people will use and to send messages.
Options
-body text
Specifies the text of the message. If it is specified, then the standard input is not read.
-cc addrs Specifies addresses to be placed in the cc: field of the message.
-from addr
Specifies the content of the From: header of the draft. The address given is placed in the From: field of the message. The
Sender: field is filled in correctly by
-help Prints a list of the valid options for this command.
-mts smtp Specifies the mail system over which mail is sent. The only value allowed is smtp, which is the standard ULTRIX mail system.
Additional values are supported only for use with other mail systems.
-subject text
Provides the text of the Subject: field of the message.
Restrictions
Messages with a null body part will not be sent by You must include some body text in all messages to be sent by
For this version, the -mts option only supports the value smtp. Additional values are supported for use only with other mail systems.
Files
Program to incorporate a maildrop into a folder.
Program to deliver a message.
Temporary copy of message.
See Also
inc(1mh), post(8mh)
mhmail(1mh)