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
User Profile
Collapse
-
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 -
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 -
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? -
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 => " " }); } -
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/) { -
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 -
-
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";Leave a comment:
-
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>"; -
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"... -
-
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 -
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 -
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 -
Exactly..kevin. . i have made the changes.. thannx for you help...Leave a comment:
-
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... -
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
-
is there any moudle for the other way(mail 2 mobile) from india?...Leave a comment:
-
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...Leave a comment:
No activity results to display
Show More
Leave a comment: