Hi, Can anyone pls. tell me how to access Active directory from solaris. I am looking at solution by which I can send mail notification from the logs generated by scripts, to the users on Exchange server. I am trying for a Perl-LDAP module , but don't realy know how to go for it (5 Replies)
Hi,
I use mailx in a shell script to mail a message to the users. i wanted to know if mailx stores the mail that it sends? for eg in microsoft outlook all mails sent get stored in the outbox. is there such a facility with mailx?
if not how i can do this so that for every mail sent, a backup... (6 Replies)
Hi , ?im a newbie using shell scripts.
Is there any way to write a script that will delete all mails from my mailbox using mail or mailx command
Thanks for your time
E. Festas (2 Replies)
HI
i wrote schell script to send e-mail automatically.
it works only e-mail for our company.say for example,
company name is : abc,
example: joe@abc.com
every body is receiving with xxx@abc.com (abc.com)
if any body from outside of our company like
joe@xyz.com.(xyz.com) are not... (3 Replies)
Hi,
I am not able to send mails to the recipents.
I am using AIX 5.3 Version and using the below command.
cat test.log|mail -s "TestMail" user1@mail.com
Can you please tell me is there any configurations to be done or is the above command wrong?
Thanks & Regards
Sheshadri (3 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)
Hi,
when i run the mailx command it gives me the least of mails . suppose there are 1- 150 mails and i want to delete 30 to 145 mails . then what command i have to use here?
Thanks (6 Replies)
hi,
While using mailx command i am receiving 2 mails with the same content in both the mails.I am attaching a file to the mailx command.
In one mail file is coming as attachement and in other attachment is not there.
I am using mailx command in this way.
echo "Some content" |mailx... (0 Replies)
Hi, I have a question about mailx in Red Hat:
If I use 'mail userid@mydomain.com -- -f root@mydomain.com', the return mail address will be root@mydomain.com.
How can I make all mails sent from this system use root@mydomain.com as return address by default?
Thank you in advance!
nz (1 Reply)
Hi,
I am working on a HP-UX box. Mailx command running successfully but no mails received. Here is what I am doing
rocfm@comhp73 - mailx -s "subject" abc@gmail.com < abc.txt
Null message body; hope that's ok
rocfm@comhp73 - echo $?
0
rocfm@comhp73 - echo "something" | mailx -v -s... (1 Reply)
Discussion started by: Sunayna
1 Replies
LEARN ABOUT PHP
xattr_set
XATTR_SET(3) 1 XATTR_SET(3)xattr_set - Set an extended attributeSYNOPSIS
bool xattr_set (string $filename, string $name, string $value, [int $flags])
DESCRIPTION
This function sets the value of an extended attribute of a file.
Extended attributes have two different namespaces: user and root. The user namespace is available to all users, while the root namespace is
available only to users with root privileges. xattr operates on the user namespace by default, but this can be changed with the $flags
parameter.
PARAMETERS
o $filename
- The file in which we set the attribute.
o $name
- The name of the extended attribute. This attribute will be created if it doesn't exist or replaced otherwise. You can change
this behaviour by using the $flags parameter.
o $value
- The value of the attribute.
o $flags
-
Supported xattr flags
+-----------------+---------------------------------------------------+
| | |
| XATTR_CREATE | |
| | |
| | Function will fail if extended attribute already |
| | exists. |
| | |
| | |
| XATTR_REPLACE | |
| | |
| | Function will fail if extended attribute doesn't |
| | exist. |
| | |
| | |
|XATTR_DONTFOLLOW | |
| | |
| | Do not follow the symbolic link but operate on |
| | symbolic link itself. |
| | |
| | |
| XATTR_ROOT | |
| | |
| | Set attribute in root (trusted) namespace. |
| | Requires root privileges. |
| | |
+-----------------+---------------------------------------------------+
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Sets extended attributes on .wav file
<?php
$file = 'my_favourite_song.wav';
xattr_set($file, 'Artist', 'Someone');
xattr_set($file, 'My ranking', 'Good');
xattr_set($file, 'Listen count', '34');
/* ... other code ... */
printf("You've played this song %d times", xattr_get($file, 'Listen count'));
?>
SEE ALSO xattr_get(3), xattr_remove(3).
PHP Documentation Group XATTR_SET(3)