User Profile

Collapse

Profile Sidebar

Collapse
sangith
sangith
Last Activity: Mar 15 '08, 01:10 AM
Joined: Jun 2 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sangith
    started a topic Dhclient already running -exiting error?

    Dhclient already running -exiting error?

    Hi,

    I configured a linux machine running Cent OS 5 on it. It gets it's IP address, gateway through DHCP. But I am not able to connect to the internet. So I did a
    "service network restart".

    But I got the following error message:-

    shutting down loopback interface OK
    bringing up loopback interface OK
    shutting down interface eth ...
    See more | Go to post

  • sangith
    started a topic configuring proxy settings on a linux server

    configuring proxy settings on a linux server

    Hi,

    I installed a Linux server. I need to configure proxy server settings on that server. I know the ip address and port number of the proxy server but I do not know how to configure them. So could anyone please let me know how to do that?

    Thanks in advance!
    Sangith
    See more | Go to post

  • sangith
    replied to Need help with a Regular Expression
    in Perl
    Hi Kevin,
    Thank you so much for your help! Your approach works just great!
    I am using this perl code for parsing my text file. The string that I am searching for in the file is a fixed one and will not occur as a part of any other string, so this approach is the best one for me.

    Thanks again,
    Sangith...
    See more | Go to post

    Leave a comment:


  • sangith
    started a topic Need help with a Regular Expression
    in Perl

    Need help with a Regular Expression

    Hi,
    I am trying to understand a concept in Regex in Perl. How to write regex in Perl such that metacharacter * is not greedy.

    Here is my code:-
    [CODE=perl]
    #!usr/bin/perl
    use strict;
    my $sentence = "Perl is a dynamic programming language created by Larry Wall and first released in 1987,
    Perl is based on the brace-delimited block style of AWK and C,
    and was widely adopted for its...
    See more | Go to post

  • Need help writing/inserting text to MS word file at the end

    Hi,
    I know I can create a MS word document using the module Win32::word::wr iter.
    But How do I write/insert text to the end of an existing MS word document. Is there any specific module for that?

    Thanks in advance,
    Sangith
    See more | Go to post

  • sangith
    replied to Convert word document to text file?
    in Perl
    Hi Kevin,

    I am referring to MS-Word document.

    Thanks,
    Sangith...
    See more | Go to post

    Leave a comment:


  • sangith
    started a topic Convert word document to text file?
    in Perl

    Convert word document to text file?

    Hi,
    How do I convert a word document into a text file. (For eg: If I give input as file1.doc, my Perl program should automatically convert it into file1.txt)
    Is there any Perl module which does this conversion?

    I would appreciate your response!

    Thanks in advance!
    Sangith
    See more | Go to post

  • sangith
    started a topic Question on opening a Socket
    in Perl

    Question on opening a Socket

    Hi,
    I am working as a software test engineer(testin g docsis compliant devices like cable modem). I have done Perl programming involving hashes, files, regex and modules. But right now, I have to automate a task which involves opening a socket. (which I have not done before)

    Here is the problem:-

    From my Linux server, I have to open a connection to another windows PC which is on the same network.
    After getting...
    See more | Go to post

  • sangith
    started a topic VoIP questions

    VoIP questions

    Hi,

    There are 2 IP phones and a cisco call manager connected to the same switch. The 2 IP phones, call manager are all in the same network. The switch is connected to the router.

    This is the first scenario:-
    When one IP phone calls another IP phone on the same network, what happens?
    Does the call goes to the Call manager and does the call manager switches the call to the other phone on the same network?...
    See more | Go to post

  • sangith
    replied to Processing the file handle in a subroutine
    in Perl
    Thank you very much for your response! I totally understand.

    -sangith...
    See more | Go to post

    Leave a comment:


  • sangith
    started a topic Processing the file handle in a subroutine
    in Perl

    Processing the file handle in a subroutine

    Hi,

    I have question on processing the file handle in a subroutine.
    Here is my program without subroutine:

    [CODE=perl]
    open FH1, "<outfile" or die "cannot open the file for reading: $!\n";
    while ($line_from_out file = <FH1>) {
    chomp $line_from_outf ile;
    print $line_from_outf ile;
    }
    close FH1;
    [/CODE]

    I am trying to write the above...
    See more | Go to post
    Last edited by miller; Jul 3 '07, 06:56 PM. Reason: Code Tag and ReFormatting

  • Right now, I am reading the file into an array and then using Regex, I am trying to place the elements under appropriate sections. I am positive that I am going to finish this problem with my approach.

    Thanks,
    Sangith...
    See more | Go to post

    Leave a comment:


  • Thanks Miller for the useful advice. I totally agree. I am not a student.
    Although I should'nt be lazy to think. Programming is a lot of fun only if I think and attempt the problem myself. That will also help me learn so much.
    I will definitely post questions only if I face any difficulty in the middle.

    Thanks.
    Sangith
    See more | Go to post

    Leave a comment:


  • sangith
    started a topic How to write to a file under appropriate block?
    in Perl

    How to write to a file under appropriate block?

    Hi,

    I have a file which is in the following format:

    This file is classify.txt
    #######Alphabet s#########
    .
    .
    .
    #######Numbers# #########
    .
    .
    .

    In my perl program, I initialize an array which has both numbers and alphabets.
    I open the classify.txt file for writing.

    1. The program will check each and every element in the array using...
    See more | Go to post

  • Why did the packet capture program did not print any info like IP addr and port??

    Hi,

    I tried the packet capture module program.
    I did a file transfer using ftp from this host to another server.

    But when I ran the program, it was just hanging off and it did not print the src ip, dst ip, src port, dst port.

    Should I run this program as a Daemon? If so, how do I do that?

    I would appreciate your response.

    Thanks,
    Sangith
    This is the...
    See more | Go to post

  • sangith
    started a topic Packet capture using Perl
    in Perl

    Packet capture using Perl

    Hi

    Can anyone suggests me a good exercise which involves Packet capture. I work in the area of Networking and hence I would be interested to do a good project in my area to get a hands on knowledge in Perl.

    I woulkd appreciate your response.

    Thanks,
    Sangeetha
    See more | Go to post

  • sangith
    replied to Module for calculating previous day's date
    in Perl
    Thanks for your reply. I will look into the document that you mentioned.

    Thanks,
    Sangith
    See more | Go to post

    Leave a comment:


  • sangith
    started a topic Module for calculating previous day's date
    in Perl

    Module for calculating previous day's date

    Hi,

    Is there any module which checks for the previous day's date. For eg I run the program which gives me the current date and I have to check another log file to see if it contains the timestamp as the previous day's date. If it is present, I have to print that particular line to the screen.

    So please let me know if there is a module available to check for the previous day date.

    Thanks,
    Sangit...
    See more | Go to post

  • Thank you all for your responses. This is definitely very helpful.

    -Sangith
    See more | Go to post

    Leave a comment:


  • sangith
    started a topic Command to display the date in numerical format?
    in Perl

    Command to display the date in numerical format?

    Hi,

    I know that the "localtime" function in Perl returns the date and time like
    Fri Jun 15 10:49:45 2007.

    Is there a command where I can display the date like 6.15.2007 in numerical format?

    I would appreciate your response.

    Thanks,
    Sangith
    See more | Go to post
No activity results to display
Show More
Working...