Where's the destination address? The mailx portion of the command line should be something like this:
So the $2 should be the destination address. If you want it to be an attachment, put -a in front of it.
Also, the attachment file will have to be on the remote server for it to work that way.
I haven't tried this with rsh, but it should work. Pass the text of the email to stdin.
Hi,
I need to compress (zip) a flat file and mail the same as an attachment.
I had tried the following piece of code. But when i open the attachment in mail, the data is incorrect (displays all junk characters).
tar cf abc.tar abc.txt
compress abc.tar
uuencode abc.tar.Z abc1.wri | mailx -s... (0 Replies)
Hi,
I need to compress (zip) a flat file and mail the same as an attachment.
I had tried the following piece of code. But when i open the attachment in mail, the data is incorrect (displays all junk characters).
tar cf abc.tar abc.txt
compress abc.tar
uuencode abc.tar.Z abc1.wri | mailx... (4 Replies)
I have a Unix server with SunOS 5.8 installed on it. I have set a cron job which will send mail across the two different networks. As of now i can only send mails to the abc.com who owns the server but would also like to send it to xyz.com is there any setting or parameter wherein i need to add... (2 Replies)
Hi all,
I have a requirement for which i need to create an aliase for an username(userid) .
suppose the user name is "sanjay.sahoo@localhost.localdomain " . If i will send to any user from this userid then all of them will see from: "the alias of the userid not the... (1 Reply)
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)
Hi All,
I have a comma separated file as below.
file-1
----------
a,b,c
d,e,f
g,h,i
.
.
.
I want to send the above file in Mail in HTML format with all the values of each column in separate cells i.e. the body of the mail should be in tabular format & each field should be separate... (2 Replies)
is there any option to mail the value from top command directly to the user.. i want the value of cpu usage from six different servers to be send in a single mail..
thanks,
Arun Manas:b: (3 Replies)
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)
Hi Folks ,
I have one query I traverse to a location where logs are being made daily, Now I want that a particular log in that logs directory to be get mailed to me automatically at a particular time on daily basis at my mail id, Please advise the command for that..
for ex the directory is... (7 Replies)
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
LEARN ABOUT DEBIAN
lfc_rename
LFC_RENAME(3) LFC Library Functions LFC_RENAME(3)NAME
lfc_rename - rename a LFC file or directory in the name server
SYNOPSIS
#include <sys/types.h>
#include "lfc_api.h"
int lfc_rename (const char *oldpath, const char *newpath)
DESCRIPTION
lfc_rename renames a LFC file or directory in the name server.
oldpath and newpath must be of the same type, i.e. both regular files or both directories.
If newpath exists already, it will be removed before the rename takes place. If newpath is a directory, it must be empty.
When renaming a directory, newpath must not be a descendant of oldpath, i.e. newpath must not contain a path prefix that names oldpath.
Write permission is required on both parents. If oldpath is a directory, write permission is required on it and if newpath is an existing
directory, write permission is also required on it.
If any of the parents has the sticky bit S_ISVTX set, either
the effective user ID of the requestor must match the owner ID of the file or
the effective user ID of the requestor must match the owner ID of the directory or
the file must be writable by the requestor or
the requestor must have ADMIN privilege in the Cupv database.
RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately.
ERRORS
ENOENT A component of oldpath prefix does not exist or oldpath or newpath is a null pathname.
EACCES Search permission is denied on a component of the path prefixes or write permission on the parent directories is denied or
oldpath is a directory and write permission is denied on oldpath or newpath.
EFAULT oldpath or newpath is a NULL pointer.
EEXIST newpath is an existing directory and is not empty or newpath is an existing file with replicas.
ENOTDIR A component of the path prefixes is not a directory or oldpath is a directory and newpath is an existing regular file.
EISDIR newpath is a directory while oldpath is a regular file.
EINVAL newpath is a descendant of oldpath.
ENAMETOOLONG The length of oldpath or newpath exceeds CA_MAXPATHLEN or the length of a path component exceeds CA_MAXNAMELEN.
SENOSHOST Host unknown.
SENOSSERV Service unknown.
SECOMERR Communication error.
ENSNACT Name server is not running or is being shutdown.
SEE ALSO Castor_limits(4), lfc_chdir(3), lfc_chmod(3), lfc_unlink(3), Cupvlist(1)AUTHOR
LCG Grid Deployment Team
LFC $Date: 2005/06/30 08:34:03 $ LFC_RENAME(3)