01-27-2006
Sending attachments using email through shell script
Hi Mahendra,
thanks for the information. You almost resolved my problem. I installed UNIX2DOS on my PC and converted the attachments which i sent through my shell script to DOS mode and they are fine now.
But we are sending these attachments to our clients. So we cannot ask them to install UNIX2DOS, copy the attachments on their PC and run the command to correct the format.
Is there any way in which i run the UNIX2DOS (or similar) command within the script and then send the attachment to users?? I am working on HP-UX and there is no UNIX2DOS inbuilt function on my OS. You know any similar function in HP-UX which does the work of UNIX2DOS?
Thanks & Regards
Vamsi Sudhakar.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi everyone,
I have a shell script that I use to send some emails with attachments. Based on the attachment file that is being sent, I choose the recipient.
My file_list.txt looks like this
CAJ.txt;sm@email.com
KXLD.txt;jc@email.com
I do a grep on this file to look for the file name and... (3 Replies)
Discussion started by: memonks
3 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I've search the forum, but I cannot find an answer to my specific question. I'm trying to send some files to my professor. Upon his request, I used the following:
tar -cvf vh.tar vh_part1.c vh_part2.c vh_part3.c vh_part4.c vh_sample_run15.txt uuencode vh.tar vh.tar > proj1 mail... (2 Replies)
Discussion started by: venush
2 Replies
3. Shell Programming and Scripting
I am pretty new to Unix shell scripting, but wondered if anyone could help (in layman's terms if possible!!) :)
I have a shell script which ultimately sends an alert to an email address if part of a batch of programs fails. Here's the script that sends the email:
Script: 6check.csh... (8 Replies)
Discussion started by: tjhorwood
8 Replies
4. Shell Programming and Scripting
hi guys,
I need a shell script to send mail automatically to my personal mail id like xxxx@hotmail.com but while experimenting with "mail" command I faced following problems.
cat text1.txt | mail -s 'test mail' xxxx@hotmail.com
command successfully executed
but while
checking for... (4 Replies)
Discussion started by: rrd1986
4 Replies
5. HP-UX
Hi,
I am executing the following command in order to send a file as an attachment:
mailx -s "Subject" emailID@xyz.com < Testfile.txt
Instead of attaching the file Testfile.txt, it is writing the contents of the file in the email message body. Please advise on how I can send the file as an... (7 Replies)
Discussion started by: sangharsh
7 Replies
6. Shell Programming and Scripting
Hi,
I need to send email from a shell script. i echoed some information to a file and i am doing cat command in the email syntax
thanks (2 Replies)
Discussion started by: rocky1954
2 Replies
7. Shell Programming and Scripting
Hi Fellas,
I have a script that queries a sybase DB through isql and appends to a file, say file.csv
I want to use the mail command in the shell script to email the file to me. i tried the following command but it doesn't work. can any one suggest whats wrong here. Note that i need the file... (2 Replies)
Discussion started by: Irishboy24
2 Replies
8. Shell Programming and Scripting
Hi,
Im having a bit of an issue with using the uuencode command and sending out an email.
My aim is to send an email out which has a body and also have attachments. Currently I can either get one or the other and not both on the same email.
uuencode... (4 Replies)
Discussion started by: 02JayJay02
4 Replies
9. Shell Programming and Scripting
Hello! I am writing a KornShell script that (in addition to other things) sends a file from a Unix directory to a SharePoint directory. However when executing the script there is no sign of the file on the SharePoint.
I have tested the script using my personal email as the destination and the... (3 Replies)
Discussion started by: mattkoz
3 Replies
10. Shell Programming and Scripting
Can anyone help me out how to send the email without the word success
while sending to the recipient.
echo "success" | mailx -s "webshell instance has been started noiw" implementation@tkcl.com (8 Replies)
Discussion started by: ramkumar15
8 Replies
LEARN ABOUT CENTOS
glinvalidatesubframebuffer
GLINVALIDATESUBFRAME(3G) OpenGL Manual GLINVALIDATESUBFRAME(3G)
NAME
glInvalidateSubFramebuffer - invalidate the content of a region of some or all of a framebuffer object's attachments
C SPECIFICATION
void glInvalidateSubFramebuffer(GLenum target, GLsizei numAttachments, const GLenum * attachments, GLint x, GLint y, GLint width,
GLint height);
PARAMETERS
target
The target to which the framebuffer is attached. target must be GL_FRAMEBUFFER, GL_DRAW_FRAMEBUFFER, or GL_READ_FRAMEBUFFER.
numAttachments
The number of entries in the attachments array.
attachments
The address of an array identifying the attachments to be invalidated.
x
The X offset of the region to be invalidated.
y
The Y offset of the region to be invalidated.
width
The width of the region to be invalidated.
height
The height of the region to be invalidated.
DESCRIPTION
glInvalidateSubFramebuffer invalidates the content of a region of a specified set of attachments of a framebuffer. The framebuffer whose
content to invalidate is indicated by setting target to the target to which it is bound. target may be GL_FRAMEBUFFER, GL_READ_FRAMEBUFFER
or GL_DRAW_FRAMEBUFFER. GL_FRAMEBUFFER is treated as if it were GL_DRAW_FRAMEBUFFER.
A region within a subset of the framebuffer's attachments may be invalidated. This set of attachments are specified in an array whose
address is given by attachments and which contains numAttachments elements. The elements of attachments must be GL_DEPTH_ATTACHMENT,
GL_STENCIL_ATTACHMENTGL_DEPTH_STENCIL_ATTACHMENT, or GL_COLOR_ATTACHMENTi, where i is between zero and the value of
GL_MAX_FRAMEBUFFER_ATTACHMENTS minus one. Furthermore, if the default framebuffer is bound to target, then attachments may contain
GL_FRONT_LEFT, GL_FRONT_RIGHT, GL_BACK_LEFT, GL_BACK_RIGHT, GL_AUXi, GL_ACCUM, GL_COLOR, GL_DEPTH, or GL_STENCIL, identifying that specific
buffer. GL_COLOR, is treated as GL_BACK_LEFT for a double-buffered context and GL_FRONT_LEFT for a single-buffered context.
The region of the framebuffer attachments to be invalidated is specified by x, y, width and height where x and y give the offset from the
origin (with lower-left corner at (0, 0)) and width and height give the size. Any pixels lying outside of the window allocated to the
current GL context, or outside of the attachments of the currently bound framebuffer object, are ignored. After glInvalidateFramebuffer is
executed, the contents of the specified region of the specified attachments become undefined.
ERRORS
GL_INVALID_ENUM is generated if target is not one of the accepted framebuffer target tokens.
GL_INVALID_ENUM is generated if any element of attachments is not one of the accepted framebuffer attachment tokens.
GL_INVALID_OPERATION is generated if element of attachments is GL_COLOR_ATTACHMENTi where i is greater than or equal to the value of
GL_MAX_COLOR_ATTACHMENTS.
ASSOCIATED GETS
glGet() with argument GL_MAX_COLOR_ATTACHMENTS
SEE ALSO
glInvalidateTexSubImage(), glInvalidateTexImage(), glInvalidateBufferSubData(), glInvalidateBufferData(), glInvalidateFramebuffer().
COPYRIGHT
Copyright (C) 2012 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication
License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
AUTHORS
opengl.org
opengl.org 06/10/2014 GLINVALIDATESUBFRAME(3G)