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 strongm 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: *

  1. LightElf

    Extracting data from files...

    my $totalFlag = 0; my $codeFlag = 0; my $recordName; open (FILE, &quot;<log.file&quot;); while (<FILE>){ if (/^--(.+)/){ #if &quot;--&quot; marks begining of record if (($tatalFlag ne 0) and ($codeFlag eq 22)){ print $recordName, &quot;\n&quot;; } $recordName = $1...
  2. LightElf

    Queries ‘waiting’

    Hi. OS: Linux Mandrake 7.1 Postgresql 7.1.0 Trouble: time to time queries begin waiting for something… 5-10-60 minutes… Why it happens?
  3. LightElf

    file length

    $n = 0; open (FILE, &quot;<file&quot;); ++$n while(<FILE>); print $n;
  4. LightElf

    SCP file transfer in Perl using UNIX login/password

    or Net::Perl::SSH or system + Expect
  5. LightElf

    HTTP::Request port

    $request = HTTP::Request->new(GET => 'http://www.oslonett.no:8080/');
  6. LightElf

    Web links

    Object->Method %hash = (Key => Value); perldoc perl
  7. LightElf

    Uploading files with "use CGI", files corrupt

    perldoc CGI open (OUTFILE,&quot;>>/usr/local/web/users/feedback&quot;); while ($bytesread=read($filename,$buffer,1024)) { print OUTFILE $buffer; } close (FILE); Also check options of your webserver.
  8. LightElf

    Any ideas why this won't write to a file??

    file2 -> FILE2 ???
  9. LightElf

    Tricky little s///

    perldoc perlop
  10. LightElf

    Installing new scripts-problem

    man chmod or http://www.sbras.ru/cgi-bin/www/unix_help/unix-man?chmod+1 7 read/write/execute for owner 5 read//execute for group 5 read//execute for others
  11. LightElf

    Calling CGI via #exec with Variables

    Cookie can be forbiden or disable... Lynx browser for example.
  12. LightElf

    using 'system' function

    system ('perl c:\scripts\bla.pl'); under windows you need to indicate what program should execute you script.
  13. LightElf

    Secure Password Authentication and SMTP

    use Linux ))
  14. LightElf

    Trouble building array

    perldoc -f my perldoc perlsub
  15. LightElf

    Secure Password Authentication and SMTP

    #!/usr/local/bin/perl -w open (STDERR, &quot;>std.err&quot;); use Net::SMTP; $smtp = Net::SMTP->new('smtp.rnp.ru', Hello => 'smtp.rnp.ru', Timeout => 30, Debug => 1 )...
  16. LightElf

    Calling a script

    1) <img src=&quot;http://www.mysite.ru/cgi-bin/myscript.pl&quot; height=1 width=1> 2) <!--#include virtual=&quot;/cgi-bin/myscript.pl&quot; -->
  17. LightElf

    Time in Perl

    $time = localtime(time); ... ... if ($time < localtime(time)-60*60*48){ ... } ? perldoc Date::Calc ?
  18. LightElf

    Checking web page links

    perldoc LWP::Simple perldoc HTML::LinkExtor
  19. LightElf

    Setting the binary mode in a file open.

    1) How does it look like? 2 )binmode JOB;
  20. LightElf

    Calling CGI via #exec with Variables

    #exec executes ) on the server side when Apache processes request. JavaScript - only in the clients browser.

Part and Inventory Search

Back
Top