Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: thendal
  • Content: Threads
  • Order by date
  1. thendal

    adding Time in perl

    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...
  2. thendal

    Pattern Matching

    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...
  3. thendal

    Replication from sunone DS to openldap

    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...
  4. thendal

    Running unix command from webpage

    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...
  5. thendal

    Invoking Shell Script

    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...
  6. thendal

    How to connect to MSsql server using 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...
  7. thendal

    Best way to delete entries in LDAP

    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.
  8. thendal

    Adding multiple value to a hash

    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...?
  9. thendal

    Output in MS Word

    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 ----------------------------...
  10. thendal

    time difference

    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 ...
  11. thendal

    Remove special characters & spaces in a string

    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...
  12. thendal

    Attention Regex gurus: Grabing first six character from string

    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++) {...
  13. thendal

    Can't connect to local MySQL server through socket '/tmp/mysql.sock'

    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...
  14. thendal

    Hash...

    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...
  15. thendal

    Change in Linux kernel scheduler function

    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...
  16. thendal

    Capture Url & redirect

    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...
  17. thendal

    Password check

    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...
  18. thendal

    Rex-gurus: Replace first character in a string

    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.
  19. thendal

    Escape special characters in password

    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')...
  20. thendal

    Validating Unix users

    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...

Part and Inventory Search

Back
Top