Sponsored Content
Top Forums Shell Programming and Scripting [Solved] Need Help in reading Response file Post 302890946 by mallak on Sunday 2nd of March 2014 04:56:37 PM
Old 03-02-2014
Hi Wise,

Thanks for your Quick Reply

Sorry forgot to inform that

Address Varible might have Mutiple Lines. in Example i gave only 3 lines, what if we have a variable number of lines

Could you pl help me in that

Thanks
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Reading response from server

I am trying to write a korn shell script which posts commands to a server and read the response back from the server. Any idea how I can read the servers response? I have tried doing the following: ( LOGIN:xxxxx command to server read ANSWER echo $ANSWER >file1... (4 Replies)
Discussion started by: frustrated1
4 Replies

2. UNIX for Advanced & Expert Users

ssh error: Error reading response length from authentication socket

Hi - I am getting the error `Error reading response length from authentication socket' when I ssh from my cluster to another cluster, and then back to my cluster. It doesn't seem to affect anything, but it's just annoying that it always pops up and tends to confuse new users of the cluster. I... (1 Reply)
Discussion started by: cpp6f
1 Replies

3. Shell Programming and Scripting

[Solved] Problem in reading a file line by line till it reaches a white line

So, I want to read line-by-line a text file with unknown number of files.... So: a=1 b=1 while ; do b=`sed -n '$ap' test` a=`expr $a + 1` $here do something with b etc done the problem is that sed does not seem to recognise the $a, even when trying sed -n ' $a p' So, I cannot read... (3 Replies)
Discussion started by: hakermania
3 Replies

4. Shell Programming and Scripting

SOLVED: reading config file in a perl script

Hi! I have a need to do this in Perl. script.pl -config file The script would be doing a wget/LWP on a URL which is defined in the config file. So when I run the script it should return either one of these conditions - 1) OK with exit status 0. Should also print "wget URL" 2)... (6 Replies)
Discussion started by: jacki
6 Replies

5. Shell Programming and Scripting

[solved] merging two files and writing to another file- solved

i have two files as file1: 1 2 3 file2: a b c and the output should be: file3: 1~a 2~b 3~c (1 Reply)
Discussion started by: mlpathir
1 Replies

6. Shell Programming and Scripting

[Solved] delete line from file1 by reading from file2

Hi All, I have to arrange one of the text file by deleting specific lines. cat file1.txt 3595 3595 -0.00842773 -0.0085077 0.00368851 12815 12815 -0.00929239 0.00439785 0.0291697 3747 3747 -0.00974353 0.00228922 0.0225058 3574 3574 -0.00711399 -0.00315748 0.0141206 .... 12734... (7 Replies)
Discussion started by: senayasma
7 Replies

7. Shell Programming and Scripting

[Solved] Reading the last word in a file from a script

Hello everybody, My first time here and my english is not very good I hope you understand me. I'm trying to read a file that contains two zip archive names. Here my file content is: package1.zip package2.zip At the end of the line there is a \n character. I read this file from a... (2 Replies)
Discussion started by: Aurea
2 Replies

8. Programming

[Solved] Problem with fork() while reading files

Good evening everyone. I have my finals and I'm facing a problem: I have a for cycle that is supposed to fork 2 children but somehow it forks only the first one. What am I doing wrong ? #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h>... (5 Replies)
Discussion started by: pfpietro
5 Replies

9. UNIX for Dummies Questions & Answers

[Solved] Reading Array And Send An Email

I am trying to find an example for reading an array instead of reading a file and send out an email in ksh. Can you please help is that possible? Algorithm #!/bin/ksh i=0 set -A ARR if then let i=$ ARR="A does n't match with B" fi if then let i=$ ARR="P does n't match with Q"... (11 Replies)
Discussion started by: Ariean
11 Replies

10. Shell Programming and Scripting

Problem reading terminal response string from Zsh

Note: This posting is related to my posting at bash - Reading answer to control string sent to xterm - Stack Overflow , but I could get there a solution only for bash. I can use that solution, but for curiosity, I wonder, whether I could do this in Zsh as well. The problem is to send a (Posix-)... (6 Replies)
Discussion started by: rovf
6 Replies
Verp(3pm)						User Contributed Perl Documentation						 Verp(3pm)

NAME
Mail::Verp - encodes and decodes Variable Envelope Return Paths (VERP) addresses. SYNOPSIS
use Mail::Verp; #Using class methods #Change separator to something else Mail::Verp->separator('+'); #Create a VERP envelope sender of an email to recipient@example.net. my $verp_email = Mail::Verp->encode('sender@example.com', 'recipient@example.net'); #If a bounce comes back, decode $verp_email to figure out #the original recipient of the bounced mail. my ($sender, $recipient) = Mail::Verp->decode($verp_email); #Using instance methods my $verp = Mail::Verp->new(separator => '+'); #Create a VERP envelope sender of an email to recipient@example.net. my $verp_email = $verp->encode('sender@example.com', 'recipient@example.net'); #Decode a bounce my ($sender, $recipient) = $verp->decode($verp_email); ABSTRACT
Mail::Verp encodes and decodes Variable Envelope Return Paths (VERP) email addresses. DESCRIPTION
Mail::Verp encodes the address of an email recipient into the envelope sender address so that a bounce can be more easily handled even if the original recipient is forwarding their mail to another address and the remote Mail Transport Agents send back unhelpful bounce messages. The module can also be used to decode bounce recipient addresses. FUNCTIONS
new() Primarily useful to save typing. So instead of typing "Mail::Verp" you can say my $x = Mail::Verp->new; then use $x whereever "Mail::Verp" is usually required. Accepts an optional "separator" argument for changing the separator, which defaults to hyphen '-'. The value can also be changed using the "separator" accessor. my $x = Mail::Verp->new(separator => '+'); encode(LOCAL-ADDRESS, REMOTE-ADDRESS) Encodes LOCAL-ADDRESS, REMOTE-ADDRESS into a verped address suitable for use as an envelope return address. It may also be useful to use the same address in Errors-To and Reply-To headers to compensate for broken Mail Transport Agents. Uses current separator value. decode(VERPED-ADDRESS) Decodes VERPED-ADDRESS into its constituent parts. Returns LOCAL-ADDRESS and REMOTE-ADDRESS in list context, REMOTE-ADDRESS in scalar context. Returns VERPED-ADDRESS if the decoding fails. Uses current separator value. separator Returns current value of the VERP "separator" separator(SEPARATOR) Sets new value for VERP "separator" and returns the previous value. EXPORT None. SEE ALSO
DJ Bernstein details verps here: http://cr.yp.to/proto/verp.txt. Sam Varshavchik proposes an encoding here: http://www.courier-mta.org/draft-varshavchik-verp-smtpext.txt. AUTHOR
Gyepi Sam <gyepi@cpan.org> COPYRIGHT AND LICENSE
Copyright 2007 by Gyepi Sam This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.0 2008-05-26 Verp(3pm)
All times are GMT -4. The time now is 03:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy