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: spookie
  • Content: Threads
  • Order by date
  1. spookie

    convert into local time

    Hi, I have a task to convert CET time (e.g.18:00 CET) to local time depending on the timezone provided(e.g.Europe/Vienna, US/Eastern etc). The conversion should also take into consideration the day light saving. The input will be hh:mm e.g.18:00 and the ouput should be in the similar format. I...
  2. spookie

    Not able to drop database due to '-' character

    Hi, I have a database name having a '-' character in it. I am using mysql V 5.1 on Windows and I am unable to drop the database. Any suggestions on how to drop DB.. -------------------------------------------------------------------------- I never set a goal because u never know whats going...
  3. spookie

    meta tag disables the right click

    Hi, I was studying a code which has following tag in header <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> and the right click on that page was dsiabled. I wanted to enable it. After trying for some time i commented the above line and the right starts working. Can anyone...
  4. spookie

    Extract only nos from multiple lines

    Hi All, I have a file of following format. 2008/09/02 00:30:10 INFO> Feature.pm:181 - Processing Response for 01234 Feature FEAT_10 status A msg 2008/09/02 00:30:10 DEBUG> Feature.pm:182 - Feat Seq 582269 2008/09/02 00:30:11 INFO> Feature.pm:191 - Response FEAT_ERR_005 -- 2008/09/02 00:30:11...
  5. spookie

    LIMIT clause

    Hi, I just want to confirm if the LIMIT clause is applicable to UPDATE/INSERT query as well. I have to update certain data (10000 rows) but to be on the safer side i have to do it first on 10 records. so my query will be like UPDATE <tablename> SET <KEY> = '<VALUE>' LIMIT 10 ; again what 10...
  6. spookie

    Delete matched line and previous line

    Hi, How do i delete a pattern matched line and line previous to that line? Thanks in advance -------------------------------------------------------------------------- I never set a goal because u never know whats going to happen tommorow.
  7. spookie

    Time taken by process after it's completed

    Hi, Is there any way to know how much time a process, with say PID 123, has taken to complete after it gets completed. i.e.ps -ef does not show up the process. -------------------------------------------------------------------------- I never set a goal because u never know whats going to...
  8. spookie

    Question about use directive

    Hi, I have a module which has "used" strict in it. Then in my perl file i use that module, but should it also include strict pragma in my perl file automatically?(it is not) Why is it so? Below is the sample code #test.pm package test; use strict; sub new { my($self) = {}; bless $self...
  9. spookie

    control M

    Hi, Can someone give me information about control M on solaris (what exactly it is? how it works? etc..). Also how is it different from cron job? TIA -------------------------------------------------------------------------- I never set a goal because u never know whats going to happen tommorow.
  10. spookie

    connecting via ssh in script

    Hi, I have come across a command in a perl script which i am not able to understand. The command is as below qq|ssh -p $p $u\@$f abc xyz $v \| grep $UCbs|; Note:abc and xyz is actually something else. At first look, it seems that its trying to connect some host via ssh but what is abc and...
  11. spookie

    Move files between dates

    Hi, How can i move files between specific dates ? -------------------------------------------------------------------------- I never set a goal because u never know whats going to happen tommorow.
  12. spookie

    Calling subroutine:Using &amp;

    Hi, Is it good practice to use & to call a subroutine ? Your thoughts please. -------------------------------------------------------------------------- I never set a goal because u never know whats going to happen tommorow.
  13. spookie

    Perl Parser

    Hi, I want to check a perl program against a cetain checklist. The checklist can be 1) if a perl script has 'use strict' in it. 2) There are no variables with the same name defined twice in the script. 3) To check if the loop condition is proper. i.e.incrementing operator and limit operator...
  14. spookie

    View process history

    Hi, How can i view processes that run on system on particular day ( say 29 DEC 2006 ) with the time duration they were active? Thanks -------------------------------------------------------------------------- I never set a goal because u never know whats going to happen tommorow.
  15. spookie

    Display lines around matching lines

    Hi, I want to extract lines following matching pattern in a file with the matching line. grep, sed will obviously give me only matching line and not lines following them. Example This is line1 - user1 This is line2 - user2 This is line3 - user3 I want two lines follwing line which contain...
  16. spookie

    Problem using LWP

    Hi, I am trying to make http request to another server and read a web page from inside perl. Here is the code i am using my $url = "http://www.<somesite>.com" ; use LWP::Simple; my $content = get $url; die "Couldn't get $url" unless defined $content; print $content ; I am not able to get the...
  17. spookie

    find and grep

    Hi, I am issuing find command as find $path -type f -print Now i want to filter out certain file names using some regex with the above command, but i am not getting exact syntax. find $path -type f -print | grep 'abc*xyz' # not working...
  18. spookie

    find command

    Hi, How do i filter out permission deny messages, while using find command, and display only matching records on screen? Thanks -------------------------------------------------------------------------- I never set a goal because u never know whats going to happen tommorow.
  19. spookie

    how important is 'use warnings' ?

    Hi, As strict pragma is recommended and should be included in perl file, i am wondering if 'use warnings' is as recommended as strict. Your opinion ? -------------------------------------------------------------------------- I never set a goal because u never know whats going to happen tommorow.
  20. spookie

    Get MIME file type

    Hi, I want to determine mime file type of files like .doc, .pdf, .rtf etc. Now i can't go on with the extension as some extensions are wrong. e.g. doc file having extension .rtf etc. I guess 'file' command does that but its not giving me correct output. Can anyone tell me how to use the command...

Part and Inventory Search

Back
Top