if i remove EOF, for each iteration in for loop its struck and i have to press CTRL+D everytime which i dont want to do since its a batch process.
Moreover if i remove EOF i am not getting any mails. thats the problem.
---------- Post updated at 04:33 AM ---------- Previous update was at 01:22 AM ----------
i used
its working now..
Last edited by jcebalaji; 11-06-2012 at 02:30 AM..
I have used the forum to determine the format required to send attachments from hp-ux 11. the problem I have is that using mailx does not attach the file, but subsititing mailx for mail on the command line attaches the file but i'm not able to specify a subject?
The attachment has been convert... (3 Replies)
Hi ,
Whenever I try to mail to external email Id's ( like yahoo , gmail etc ) the attachment is getting corrupted.
In the script I am using the mailx option as follows:-
(cat $temp_mail; uuencode $temp_info_csv $temp_info_csv)|mailx -s "Report" -m $c_mail_id;
where $temp_mail is the... (1 Reply)
I don't want the attachment embedded in the mail. I would like a file attached.
When I do
mailx -s "Report, `date +'%D %r` " -r "Notifications" bob@bob.com < /usr/local/bin/myreport.log> /dev/null
It gets embedded in my email. I want a file attachment. How do I do that? (2 Replies)
Hi All,
Can anyone please provide the command for sending an mail with attachment using mailx command.
Thanks in Advance :)
Regards,
Siram. (3 Replies)
mailx with -m command sending emails with attachments correctly to all users except users who have email on microsoft exchange server. They are receiving attachments as garbled text in mail body (5 Replies)
Hi,
When i used below command, i am able to send mail
mailx -s "Testing mail working or not " babu.sudhakar@ymail.com"
but if i want send attachment with mail,which syntax i need to follow to send a file as attachment. (3 Replies)
We've been emailing uuencode'd PDF files as attachments with mailx for quite sometime with no problems. Recently we've expanded the volume and have intermittent problems with recipients unable to open the attachment. The same file can be successfully resent at a different time.
It's been... (1 Reply)
Hello, I am new to the Unix thing, and I am having trouble sending attachments via shell client putty through mailx.
The command I use is
$ mailx -s "Subject" user@blah.com < attachment.txt
but everytime I do that it would say Cannot open attachment.txt
I have the file save to my computer... (5 Replies)
Discussion started by: mrobin20
5 Replies
LEARN ABOUT OSF1
mktrashcan
mktrashcan(1) General Commands Manual mktrashcan(1)NAME
mktrashcan, rmtrashcan, shtrashcan - Attaches, detaches, or shows a trashcan directory
SYNOPSIS
/usr/sbin/mktrashcan trashcan directory...
/usr/sbin/rmtrashcan directory...
/usr/sbin/shtrashcan directory...
OPERANDS
Specifies the directory that contains files that were deleted from attached directories. Whenever you delete a file in the specified
directory, the file system automatically moves the file to the trashcan directory. Specifies the directory that you attach to a trashcan
directory.
DESCRIPTION
The trashcan utilities (mktrashcan and rmtrashcan) enable you to attach or detach an existing directory, which you specify as a trashcan
directory, to any number of directories within the same fileset.
A trashcan directory stores the files that are deleted with the unlink system call. For instance, you can use the mktrashcan utility to
attach a trashcan directory called /usr/trashcan to one or more directories; thereafter, when you delete a file from one of the attached
directories, the file system moves the file to the /usr/trashcan directory. Note that when more than one directory shares attachment to a
trashcan directory, files with the same file name can overwrite each other in the trashcan directory.
If you mistakenly delete a file, use the mv command to return the file from the /usr/trashcan directory to its original directory.
When you enter shtrashcan at the system prompt, the system shows the trashcan directory, if one exists, for the directory you specified.
It is important that trashcan directories have correct access permissions. If the permissions are too restrictive, then it may be impossi-
ble to remove files from the directories that are attached to the trashcan directory. In general, all users and groups that expect to use
the trashcan directory need write permission to the directory. If unexpected "permission denied" errors occur when deleting files that are
in a directory attached to a trashcan directory, use the chmod command to change the permissions on the trashcan directory.
RESTRICTIONS
The directory and trashcan directories must be in the same fileset; however, you can attach the trashcan directory to any directory within
the fileset.
EXAMPLES
The following example creates and attaches a trashcan directory, /usr/trashcan, to two directories, /usr/ray and /usr/projects/sql/test,
which are in the same fileset. The chmod command adds write permission for all users and groups on the new trashcan directory. % mkdir
/usr/trashcan % chmod a+w /usr/trashcan % mktrashcan /usr/trashcan /usr/ray /usr/projects/sql/test To attach the trashcan directory,
/usr/trashcan, to all subdirectories in the /usr directory, enter: % mktrashcan /usr/trashcan /usr/*
New subdirectories that you add beneath the /usr directory are not attached to the trashcan directory until you attach them. Also,
the mktrashcan utility distinguishes between directories and files, attaching only directories to the trashcan directory.
Note that an attached directory produces an EDUPLICATE_DIRS (-1165) error when /usr/trashcan is itself in the directory path you
attach to (as in the previous example). You can ignore this error message.
SEE ALSO advfs(4), mkfset(8), showfsets(8)mktrashcan(1)