User Profile

Collapse

Profile Sidebar

Collapse
prn
prn
Last Activity: Jun 11 '15, 12:50 PM
Joined: Apr 18 '07
Location: Muncie, IN
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • prn
    replied to Extract email addresses from big file.
    Let's adjust sun123's script to:
    Code:
    for i in `cat emailtest.txt`
      do
        echo $i >> filename1
      done
    grep "@" filename1
    This now uses the name of that we have been using for the original input and the file to be grepped in the last line has been corrected from "filename" to "filename1" , i.e., the output from the cat instead of the original input.
    ...
    See more | Go to post

    Leave a comment:


  • prn
    replied to Extract email addresses from big file.
    I haven't really revisited this topic for a while now, but here are a few comments.

    TIMTOWTDI, prashantva. :) That is, "There Is More Than One Way To Do It." Your way appears to be almost equivalent to what we had before. The only difference I note will show up in the case of more than one hyphen in a name. Check out the result from the "j-q-public" entry in the output of the perl program below versus the egrep...
    See more | Go to post

    Leave a comment:


  • prn
    replied to Need IDEA plugin for gpg
    The problem was that I was not getting the ftp site linked from the gnupg.org page ( ftp.gnupg,dk ) to work. I could not either ls or cd to pub/contrib-dk.

    It turns out, however, that their webserver seems to work somewhat better than their ftp server. For the benefit of anyone else looking for the same files, here's the steps that eventually acquired (and proved) a good file:

    Code:
    wget http://www.gnupg.dk/contrib-dk/idea.c.gz
    ...
    See more | Go to post

    Leave a comment:


  • prn
    started a topic Need IDEA plugin for gpg

    Need IDEA plugin for gpg

    Hi folks,

    Using Centos 5.6. I need to decrypt messages created by PGP 4.0 for MVS.

    The messages are encrypted using IDEA for the symmetric cypher. Right now, I'm using gpg on Windows, but it looks like I'm finally going to be permitted to move that process to Linux.

    The problem is that the GPG FAQ at http://www.gnupg.org/faq/GnuPG-FAQ.html#how-do-i-include-support-for-rsa-and-idea says the source for...
    See more | Go to post

  • Also, if your version of toupper() is to have any generality, keep in mind that although the difference between À (uc A with grave, in case the actual character does not show up for you) and à (lc a with grave) is 32, just like the unaccented characters, the difference between Č (uc C with "caron") and č (lc c with "caron") is only 1. IOW, just flipping the 32-bit may fail if you are concerned with anything more than...
    See more | Go to post

    Leave a comment:


  • prn
    replied to Problem with typing @ in Unix
    davidson1, you still have not answered the single most important question: Where are you typing the '@' symbol? You mentioned mail, but are you trying to type @ as part of the command line parameters of the shell script? Or is it in response to a prompt from the shell script?

    Paul
    See more | Go to post

    Leave a comment:


  • tvnaidu said:


    Yes. But which ssh?

    SSH is a network protocol, but there is also a company ssh.com, which sells an implementation of a client for the protocol. However, there are a number of different implementations of client software for the SSH protocol. We really can't answer a question any better than numberwhun's comment above without knowing which client software you mean.

    Paul...
    See more | Go to post

    Leave a comment:


  • prn
    replied to Weird version dependency problems
    Hi NeoPa,

    I'm certainly more than capable of asking dumb questions, sometimes even very clearly. :-/

    (But a pointer to Allen Browne's site is hardly ever a bad idea.)

    Thanks,
    Paul
    See more | Go to post

    Leave a comment:


  • I don't know where the cert is kept either, but that is because different SSH clients keep them in different places. TERATERM PRO keeps a known_hosts file (ssh_known_host s) in \Program Files\TTERMPRO. PuTTY, on the other hand, keeps certs in the windows registry. What ssh client are you using?

    Paul
    See more | Go to post

    Leave a comment:


  • prn
    replied to Problem with typing @ in Unix
    davidson1 said:
    [blockquote]It is shell script and if I type echo $TERM[/blockquote]

    It looks like you don't plan to complete that sentence without prompting, so I'll ask. Do you mean that you are trying to create/edit a shell script? If so, what editor are you using? Or do you mean that you are trying to respond to a prompt from a shell script? If so, what are the relevant lines from the script? What method of reading input...
    See more | Go to post

    Leave a comment:


  • prn
    replied to Weird version dependency problems
    Hi NeoPa,

    That's true. Allen Browne's site is a great reference (probably the best single reference site I have found). Unfortunately, I haven't found anything that appears relevant to these particular problems. It's always worth taking another look there. In fact, I just did and noticed a relatively recent topic that looks promising wrt a different issue, so it's good that I looked again anyway.

    Thanks,
    Paul
    See more | Go to post

    Leave a comment:


  • prn
    replied to Problem with typing @ in Unix
    Are you typing @ at the shell command prompt, in some application, where? What flavor of unix? What kind of terminal or emulator? (what do you get when you type the command "echo $TERM"?)

    Paul
    See more | Go to post

    Leave a comment:


  • prn
    replied to Extract email addresses from big file.
    Hi Scott,

    I'm afraid I was too lazy the other day.

    If you're going to create a file to do the same job, you have to do the read from STDIN explicitly. So the file ExtractEmail.pl could look like this:

    [code=perl]
    while (<STDIN>) {
    while (/[\w\.\-]+@[\w\.\-]+\w+/g)
    {print "$&\n"}
    }[/code]

    Then you can invoke it like this:

    ...
    See more | Go to post

    Leave a comment:


  • As usual, the answer is "It depends."

    What do you need to test? If you want to test for connections from other machines (the usual situation) then one NIC is fine. I have modified iptables and tested the mods that way many times.

    Paul
    See more | Go to post

    Leave a comment:


  • prn
    replied to Extract email addresses from big file.
    Hi RADEP,

    You are apparently trying to do this in a MS Windows environment rather than a *nix environment. The error you are seeing comes from the Windows command-line parser. I am going to assume (which may get me into trouble) that you entered the offending command on a single line. If so, then the only thing that leaps out at me is the lack of space between the final ' and the apparent input file "db_em". Did you copy...
    See more | Go to post

    Leave a comment:


  • prn
    replied to Weird version dependency problems
    ADezii: That's really wild. Your problem was almost the opposite of mine, with your text disappearing rather than mine being initially invisible and then appearing, but it's just similar enough (underlying data actually present; subform; only one field; the change in visibility occurring as the fields are entered; front-end/back-end architecture; etc.) that one has to think they are related in some way.

    The fact that yours occurred...
    See more | Go to post

    Leave a comment:


  • prn
    replied to Weird version dependency problems
    tpoher23: Thanks. I will check those settings. I guess I was lax there. Frankly, I would be very surprised if any of those people had done anything with their option settings, but you're right. And I will check those.

    I'm not at all surprised that you have not run into these problems. Each of them is happening to me only in a single field in a single form in an application with approximately 200 forms. (This application has grown way...
    See more | Go to post

    Leave a comment:


  • prn
    started a topic Weird version dependency problems

    Weird version dependency problems

    Hi folks,

    I've come across a couple of the oddest behaviors that I have ever seen and wondered if anyone else has had anything similar, and if so, whether you have any suggestions for me. I warn and apologize to any brave souls that the following description will be long -- it has to be -- but if you feel brave enough to read it, I will thank you.

    Both of the phenomena seem to involve version dependencies. I had been...
    See more | Go to post

  • Look, it doesn't help to just keep repeating that you want "the solution". You need to understand that there is no such thing as "the solution".

    There are always many ways to do something, but, typically, most of them are not what the questioner really wants.

    OK. So despite your description of the XP as "local" you really mean that the XP machine and the Linux machine are two separate...
    See more | Go to post

    Leave a comment:


  • OK. So from what you said, you have two separate computers and
    1) you transfer files from one of them (unspecified) to your Linux server and
    2) THEN you want to transfer the files from Linux to Windows XP on the same ("local") computer.

    Is that right? What "local" means to me (and probably to most of us here) is "on the same computer".

    So, to accomplish step 2, you will need...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...