User Profile

Collapse

Profile Sidebar

Collapse
jain236
jain236
Last Activity: Dec 17 '10, 12:12 PM
Joined: Jul 7 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jain236
    started a topic regx for time
    in Perl

    regx for time

    Hi i am trying to write regx for the time format HH:MM:SS in the below way

    /\d[0-24]:\d0[-60]:\d[0-59]/

    but i could not get the desired output,
    can some one throw some light why and where it is going wrong?

    Thanking you in advance
    See more | Go to post

  • Getting the process running on the other PC wiht administrative rights

    Hi
    i just want to have the control over the process running on the other system , for which i have adminstrative privilages. i just want kill some process from my system to other system ?

    i tried using use Win32::Process, i could not succed much can any body throw some light on this issue?


    thanking you in advance

    regards

    rahul
    See more | Go to post

  • jain236
    started a topic reading file into string
    in Perl

    reading file into string

    Hi ,
    i have file of 32kb , i want to read the whole file into string ,
    i tried this by doing the below code, but i dint got the whole content of the file in the string , i guess the variable is not able to hold the all data, is there any way where i can achive the same?

    Code:
    open(FH, "$file");
    	my @output = <FH>;
    	close FH;
    foreach $logmsg (@output)
    	{
    		$sdpString
    ...
    See more | Go to post

  • jain236
    started a topic inovking a perl script in a script
    in Perl

    inovking a perl script in a script

    Hi,

    i have a perl script 123.pl and in that script i am trying to invoke 234.pl which takes one command line argument .is there any way that we can achive the same?
    See more | Go to post

  • jain236
    replied to how to - Net::SMTP with user name & password
    in Perl
    Hi you can try this one to send mail
    Code:
     use Mail::Sender;
    sub sendEmail
    {    
        my $mailmsg =shift;    
        my $sender = new Mail::Sender {from => ''}; 
       
    $sender->MailMsg(
    {   
        smtp => '',
        to      => [EMAIL],
        subject => "",
        msg => " "
    });
    
    }
    See more | Go to post

    Leave a comment:


  • jain236
    started a topic Regx
    in Perl

    Regx

    Hi all

    i am facing problem in the regex when is substitute a variable in the text.

    here is the code
    Code:
    $ver = 1.92 (i get it dynamically)
     my $patternph = 'Configuration file '. "\"phone1\.cfg\"" ." is from template phone1\.cfg, revision "."$phver" ;
    foreach my $val (@output)
    	{	
    		
    		if ($val =~ /\Q$patternph\E/)
    		{
    ...
    See more | Go to post

  • jain236
    started a topic system command
    in Perl

    system command

    Hi all
    i have a cgi which has ping and stop button when i click it sends system ('ping 126.56.36.80 -t') which continously get the ping status of the ip until we send CTRL+c , but when i click stop button in need to send CTRL+C command , how can we achive this?or else how can we kill the process running?


    thanking you in advance
    See more | Go to post

  • jain236
    replied to DeviceDiscovery using Perl
    in Perl
    Could you please elabroate your requirement?
    See more | Go to post

    Leave a comment:


  • jain236
    replied to How to sort the data?
    in Perl
    Hi ramohna may a simple way, no to complicate life with hasesh
    Code:
    @data=('man', 'women', 'man', 'man',
           'women', 'man', 'man', 'man');
    my $str;
    my $women;
    for ($i = 1;$i <=$#data+1;$i++)
    {
      $str.= $i if $data[$i-1]=~ /man/;
       $women.= $i if $data[$i-1]=~ /women/;
        
    }
    print "$str:man\n";
    print "$women:women";
    ...
    See more | Go to post

    Leave a comment:


  • jain236
    started a topic dbi
    in Perl

    dbi

    hi all

    i am trying to retrive the data from the database by using the following code and printing.But it is reteriving one entry less from the database.could some throw light on this.
    Code:
    my $sth = $dbh->prepare($query);
    	$sth->execute;
    	
    	while(my $ref = $sth->fetchrow_hashref())
    	{
    		print "Found a row: name = $ref->{'employee'}, Model = $ref->{'model'},Mac = $ref->{'mac'}<br>";
    ...
    See more | Go to post

  • jain236
    started a topic HTML forms: validate form before submitting

    HTML forms: validate form before submitting

    Hi every all,

    i have a small doubt about the form tag in html. i have html page which has 2 select button, and one text box.
    i have a submit button whicn on clicking it is calling inven.cgi.when i click it is going to new page , instead of that first i want to validate the select button and text box if nothing is selected then it should not go to the inven.cgi.

    <FORM METHOD=POST ACTION="inven.c gi"...
    See more | Go to post

  • jain236
    started a topic Architecture

    Architecture

    Hi can some one send me the Moblie architecture?
    See more | Go to post

  • jain236
    started a topic apache error

    apache error

    Hi all i am getting this error. can some one throw some light on this?

    The server encountered an internal error or misconfiguratio n and was unable to complete your request
    See more | Go to post

  • jain236
    started a topic Apache- which one to use?

    Apache- which one to use?

    Hi i am new to the apache.

    which one i shuould use to host my site..apache or apache tomcat?and what is the difference between them
    See more | Go to post

  • jain236
    started a topic Phpmyadmin

    Phpmyadmin

    Hi i am a newbie to Mysql,
    could some help me how to get phpmyadmins and how to install.

    is it a exe or msi?

    Thanking you in advacne

    jain kiran
    See more | Go to post

  • jain236
    replied to CGI Script
    in Perl
    Exactly..kevin. . i have made the changes.. thannx for you help...
    See more | Go to post

    Leave a comment:


  • jain236
    started a topic CGI Script
    in Perl

    CGI Script

    Hi every body,

    i am just new to the CGI scripting.
    i am trying to run a basic CGI script . i am using APACHE as my web server .

    i have placed my basic script inven.cgi in the web server and when i am trying to access my script with http://mydomain/inven.cgi
    instead of getting the functionality of the script , i am seeing the whole script code on the web page.Do i need to do any setting to run the CGI...
    See more | Go to post

  • jain236
    started a topic Mysql error
    in Perl

    Mysql error

    Hi all i am new to the DBI .
    when i am trying to connect to mysql using perl script i am getting the following error

    Can't connect to data source '$dsn' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set)
    here is the way i am tryng to connect
    Code:
    use strict;
    
    use DBI;
    use DBD::mysql;
    
    my $drh
    ...
    See more | Go to post

  • jain236
    replied to how to send sms to mail using perl
    in Perl
    is there any moudle for the other way(mail 2 mobile) from india?...
    See more | Go to post

    Leave a comment:


  • jain236
    replied to how to send sms to mail using perl
    in Perl
    Hi jeff i was also looking for the same, but i could not fine the module to send sms from inida, is there any module which is free?

    thanking you in advance...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...