Hi there!!!
I'm wondering is there any easy way to add or manipulate time in the built-in time function.
In the code below if i add $sec=$sec + 10; then if its greater than 60 seconds increase the minutes by one and if the minutes is greater than 60 then increase the hour by one. on and on...
Hi all!
I have a file which separates each record with a empty newline at the end. I'm reading this file and pattern matching with characters i need to capture. But my problem is I'm not able to capture the empty newline at the end of the each record.
here is the file
record1
sasdsdasd...
Is there anyone out there successfully replicated sunone directory server to openldap.
I set the agreement in SUN DS to replicate to openldap with openldap cn=manager credentials
and then in openldap added the following two lines in slapd.conf
updatedn cn=Directory Manager
updateref...
How to run a unix command from a web page...
I have unix command in the following path(solaris env) /opt/sys/rtool
this command helps to administer a portal software.
Here is the perl script to invoke the unix command
http://localhost.server/cgi-bin/enable.pl?userid=username
#!/usr/bin/perl...
Hi, I have a html page where user enters a parameter.
------
html page...
<input type=text name=username>
--------
a CGI script which retreives the username
ie)
---------------
$op=new CGI;
$username=$op->param('username');
--------
and then connects to another server using Net::SSH::Perl...
Hi all! Some one direct me what modules i need to install to work with mssql server. I already have DBI worked with mysql. now i need to work with mssql.
I can't find a driver for mssql server. I am pretty sure its out there.
i am trying to install it from freebsd machine.
any help will be...
Hi all, I have more than 10,000 entries under ou=people, i like to reload the data what is the best way to delete all the entries any advise will be appreciated.
Thank you.
Hi all, How to add a array of value to a hash
tried something like this ..didn't work
I have a array @values=("one","two");
$add_hash{values}=@values;
When i retrive $add_hash{values} it didn't output array value..
I guess i am missing something here...?
Hi All, I have a M$ word document (letter.doc) stored in /usr/local/apache/cgi-bin/letter.doc
I wrote a perl code in which each time user inputs some value like name, address the output word document customize according to the input.
the letter.doc looks like this
----------------------------...
Hi all,
I am trying to find a time difference of 12 hours. When a users enters a value place a time stamp with it. Next time when the user tries to enter a value i check whether the timestamp has exceeded the 12 hours with respect to current time.
To do this i tried something like this ...
Hi all, How can i remove all the special character and spaces from a string.
$test="7797 telegraph rd, apt # B22,city,state";
Output:
7797telegraphrdaptb22citystate
I tried something like this
$test="7797 telegraph rd, apt # B22,city,state";
$test=~s/ //g; #remove all the spaces in the...
Hi all!
How i will be able to grab first six character from a string and then check the first 6 character string to have atleast two alphabetic charater and atleast one digit.
I tired something like this ...
$test="thisistest";
@array1=split(//,$test);
for($i=0;$i<6;$i++)
{...
Hi All, Recently i have inherited an old project. Couple of days back the system went off i logged into the machine and manually restarted the services.i don't have much experience working with mysql . Started mysql service by giving the following command mysqld_safe ..it worked. I have a mysql...
Hi all!
I am retriving a set of values from a ldap server, the values are attribute name and the value it holds...i collect this values in a hash...
say something like this
foreach $attr (@aarry)
{
$hold{$attr}=$value
}
If my ldap search yield more than one result then i have write...
I am asked to build a \pro_ler" for the Linux kernel scheduler. & to add code to the existing Linux kernel's schedule() function so that upon every 1000th call, a sequence of information is
printed to the system log _le (/var/log/messages). This information should include:
_ the PID of the...
Hi all!
I am having site https://www.example.com/cgi-bin/index.pl which is secured. But people can make it unsecured when they change the url to http://www.example.com/cgi-bin/index.pl.
The server has also 80 port opened for some other application running in the same machine needs port 80 ..as...
Hi All!
How can i check whether the entered password has atleast one alpha character(/([A-Z][a-z])/) and atleast one number(/\d/)....
I tried some thing like this ...
var s=document.f1.pwd.value;
if(s=/([a-z][A-Z][0-9])+/)
{
alert("please check your password");
}
its not working...
Hi all!
I have replace first character in a string with null ie)
S344545 to 344545 ...
i tried some thing like this
$t=M23443;
@m=split(//,$t);
shift(@m);
$s=join('',@m);
print "$s";
i knew there is better one liner ...
Thank you.
Hi All!
I am using Net::IMAP::Simple module to authenticate a set of users against our mail server.
Here is a sample code.
use CGI;
use Net::IMAP::Simple;
$server = new Net::IMAP::Simple( 'pop.email.edu');
$op=new CGI;
print $op->header;
$username=$op->param('username')...
Hi All!
Have anybody validated a unix user through perl.
I have a set users who have unix account. They were asked to login to webapps to identify themselves asked to enter thier unix login name & password. Is there a way i can validate this username/password against a password file.
Any...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.