Sponsored Content
Top Forums Programming Add IpAddress Through Programatically Post 302079820 by pcman on Thursday 13th of July 2006 06:14:01 AM
Old 07-13-2006
We get same problem, if you got an idea, please let me know:

Last edited by pcman; 07-14-2006 at 04:20 AM..
 

10 More Discussions You Might Find Interesting

1. Programming

How to set the MSS programatically.

I'm sending a SYN packet and now I want to specify the MSS (The maximum segment size option in a TCP packet ) through it. How can I do that? Also, I'm not getting a SYN-ACK back from the remote host. TCPDUMP tells me that my packet is good and is a SYN. Then, why don't I get back the SYN-ACK? I... (0 Replies)
Discussion started by: zampya
0 Replies

2. Shell Programming and Scripting

ipaddress in HP-UX

Hi, How can I figure out the IP address of my node in HP-UX? Here is uname -a: /throra10 >uname -a HP-UX finprod B.11.23 U ia64 3832216299 unlimited-user license This is to launch Xterminal. Thanks. (7 Replies)
Discussion started by: RockyC123
7 Replies

3. Programming

how to programatically obtain informations about existing NICs on the system

hi, i would like to know how to programatically obtain informations about existing NICs (both configured and non-configured if possible) on *NIX? i need to write simple *NIX C/C++ program that will have these informations. i have tried to search forums (and also google) with no luck. any help... (2 Replies)
Discussion started by: nikoladsp
2 Replies

4. OS X (Apple)

Programatically change which opens a file type

Hi there, If we have 2 apps on our customers machines that can both open files of a certain file extension, is there any way via shell commands to set which application should be the default? Essentially, I'm hoping to replicate Get Info > Open With > Change All, but using a script. Thanks... (0 Replies)
Discussion started by: davewg
0 Replies

5. UNIX for Advanced & Expert Users

retrieve process state programatically

Assume I spawn a process on (csh) command line, like > du -a / >& /dev/null & which creates a process with id 1234. Now, I can suspend/resume that process with > kill -STOP 1234 > kill -CONT 1234 and can query the process state via 'jobs' or 'ps. How can I though query that state... (6 Replies)
Discussion started by: Andre_Merzky
6 Replies

6. Solaris

Programatically read 'size' shown in top?

How can the 'size' of a process, that is shown by 'top', be read programatically? I'm fixing a memory leak in a large (20,000 lines) program. (The main.cpp is itself 7400 lines!). (3 Replies)
Discussion started by: douglaskbell
3 Replies

7. UNIX for Dummies Questions & Answers

How to findsuccessful job status completion in Autosys, programatically

We are using autosys for job scheduling. How to find successful job status completion in Autosys, programatically. Based on the successful job completion , mail has to be trigeered to Business users. Please help Thanks (0 Replies)
Discussion started by: vkalya
0 Replies

8. HP-UX

[Solved] Not able to call a script from another programatically

Hi, I need to call a shell script from another. Let me explain you with an example. a1.sh and b1.sh are two scripts. a1.sh calls b1.sh internally. If i run a1.sh manually, it internally calls b1.sh but the problem is There is a process that calls this a1.sh at regular intervals,... (1 Reply)
Discussion started by: hadarapu
1 Replies

9. Shell Programming and Scripting

AWK script for programatically modifying java files

Hi, I want to add a String variable to all java classes in my project. Assuming a class like public class Random { String var="Constant string"; ... ... ... } The text in bold is what I want to add to all java files in my workspace. I am an absolute newbie to AWK, and read somewhere that... (5 Replies)
Discussion started by: rocker86
5 Replies

10. Shell Programming and Scripting

SSH Programatically

Hi Experts, Need some help. I am trying below code programatically to login to ssh ip from a csv file. the below code logging into all servers and executing some command line syntax. But what I need is for example if i have 5 IP's ,if first one connects successfully and executes the... (3 Replies)
Discussion started by: onenessboy
3 Replies
Qpsmtpd::Transaction(3pm)				User Contributed Perl Documentation				 Qpsmtpd::Transaction(3pm)

NAME
Qpsmtpd::Transaction - single SMTP session transaction data SYNOPSIS
foreach my $recip ($transaction->recipients) { print "T", $recip->address, ""; } DESCRIPTION
Qpsmtpd::Transaction maintains a single SMTP session's data, including the envelope details and the mail header and body. The docs below cover using the $transaction object from within plugins rather than constructing a "Qpsmtpd::Transaction" object, because the latter is done for you by qpsmtpd. API
add_recipient($recipient) This adds a new recipient (as in RCPT TO) to the envelope of the mail. The $recipient is a "Qpsmtpd::Address" object. See Qpsmtpd::Address for more details. remove_recipient($recipient) This removes a recipient (as in RCPT TO) from the envelope of the mail. The $recipient is a "Qpsmtpd::Address" object. See Qpsmtpd::Address for more details. recipients( ) This returns a list of the current recipients in the envelope. Each recipient returned is a "Qpsmtpd::Address" object. This method is also a setter. Pass in a list of recipients to change the recipient list to an entirely new list. Note that the recipients you pass in MUST be "Qpsmtpd::Address" objects. sender( [ ADDRESS ] ) Get or set the sender (MAIL FROM) address in the envelope. The sender is a "Qpsmtpd::Address" object. header( [ HEADER ] ) Get or set the header of the email. The header is a <Mail::Header> object, which gives you access to all the individual headers using a simple API. e.g.: my $headers = $transaction->header(); my $msgid = $headers->get('Message-Id'); my $subject = $headers->get('Subject'); notes( $key [, $value ] ) Get or set a note on the transaction. This is a piece of data that you wish to attach to the transaction and read somewhere else. For example you can use this to pass data between plugins. Note though that these notes will be lost when a transaction ends, for example on a "RSET" or after "DATA" completes, so you might want to use the notes field in the "Qpsmtpd::Connection" object instead. body_filename ( ) Returns the temporary filename used to store the message contents; useful for virus scanners so that an additional copy doesn't need to be made. Calling "body_filename()" also forces spooling to disk. A message is not spooled to disk if it's size is smaller than $self->config("size_threshold"), default threshold is 0, the sample config file sets this to 10000. body_write( $data ) Write data to the end of the email. $data can be either a plain scalar, or a reference to a scalar. body_size( ) Depreceated, Use data_size() instead. data_size( ) Get the current size of the email. Note that this is not the size of the message that will be queued, it is the size of what the client sent after the "DATA" command. If you need the size that will be queued, use my $msg_len = length($transaction->header->as_string) + $transaction->body_length; The line above is of course only valid in hook_queue( ), as other plugins may add headers and qpsmtpd will add it's Received: header. body_length( ) Get the current length of the body of the email. This length includes the empty line between the headers and the body. Until the client has sent some data of the body of the message (i.e. headers are finished and client sent the empty line) this will return 0. body_resetpos( ) Resets the body filehandle to the start of the file (via "seek()"). Use this function before every time you wish to process the entire body of the email to ensure that some other plugin has not moved the file pointer. body_getline( ) Returns a single line of data from the body of the email. body_fh( ) Returns the file handle to the temporary file of the email. This will return undef if the file is not opened (yet). In hook_data( ) or later you can force spooling to disk by calling $transaction->body_filename. dup_body_fh( ) Returns a dup()'d file handle to the temporary file of the email. This can be useful if an external module may call close() on the filehandle that is passed to it. This should only be used for reads, as writing to a dup'd filehandle may have unintended consequences. SEE ALSO
Mail::Header, Qpsmtpd::Address, Qpsmtpd::Connection perl v5.14.2 2010-02-12 Qpsmtpd::Transaction(3pm)
All times are GMT -4. The time now is 05:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy