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

    misguiding cfgadm output

    When I run cfgadm in Solaris 8 on any server it shows all disks are failing. But all drives are ok and available. Can someone tell me why? /usr/sbin/cfgadm -avl Ap_Id Receptacle Occupant Condition Information When Type Busy Phys_Id c0...
  2. billbose

    Pointer question - might be silly

    char *hname ; char **tname ; I know hname is a pointer to a char. But what is tname?! :(
  3. billbose

    define macro

    #define is_dig(x) ((x) >= '0' && (x) <= '9') Can somebody tell me what does the above macros mean?
  4. billbose

    C++ newbie trying to cope with STL Maps

    I am trying to use STL map like 'hash of arrays' in Perl. For eg in Perl hash of array, %HoA = ( flintstones => [ "fred", "barney" ], jetsons => [ "george", "jane", "elroy" ], simpsons => [ "homer", "marge", "bart" ], ); print $HoA{flintstones}[0] ; # will give...
  5. billbose

    glob sort help needed

    I have a directory of c source with names: 0.c , 1.c , 2.c, 3.c, 4.c, ..... 9.c, 10.c, 11.c I do a glob on those files and do a foreach $file (@filelist) print $file I get the following which is not ordered: 0.c 1.c 10.c 11.c 2.c 3.c 4.c 5.c .. .. 9.c Whereas I expect it to be 0.c 1.c...
  6. billbose

    Preventing annoying console message

    icebox console login: Mar 10 11:28:16 icebox su: 'su root' succeeded for iceman" Can somebody show me how to prevent the annoying console message above which appears whenever I su to root in my Sun workstation thruough ssh.
  7. billbose

    check module availablility

    Determine OS and then adding module ############# #!/usr/bin/perl use POSIX qw(uname); my $kernel = (uname)[0]; if ( ! $kernel =~ m/^Windows/) { use Sun::Solaris::Kstat; } ############## i want to use a module by making sure its available first. Can somebody tell how to do that. I am...
  8. billbose

    How to print last line of file?

    How to print last line of file? The Perl cookbook uses this method: @lines = <FILE>; $lastline = pop @lines However the above method requires the file to be loaded completely into an array(memory) and is not suitable for large files. Tie::File module cannot also be used here since I am using...
  9. billbose

    newbie question: val &amp;= ~flags;

    what does the statement "val &= ~flags;" mean
  10. billbose

    Minimalist command line Perl html file browser

    Is there a perl script out there which can read html files like lynx or links in the command line?
  11. billbose

    tracking log file time stamp

    open file for read while file is true { ( if line =~ 09/02 ) >>> execute this statement once in this loop start writing line to temp.txt if line =~ 09/03 { break } } Is this possible in vbscript
  12. billbose

    Files younger than 24 hours old

    I am trying to find files younger than 24 hours old in the /tmp directory. ------------------------------- #!/usr/bin/perl -w use strict; use File::stat ; opendir(D, "/tmp") or die $!; my $time = time(); while (my $f = readdir(D)) { next if $f =~ /^\./; next unless $f =~...
  13. billbose

    Keyboard shortcut

    What is the keyboard shortcut to exit the cmd line.(command prompt)
  14. billbose

    newbie: How to convert a perl module to a subroutine?

    I have in need of converting a CPAN module to a subroutine which I can add in my perl script. Can somebody give me guidelines to perform that. Here is the code: --------------< snip > --------------------------- # File::ReadBackwards.pm # Copyright (C) 2003 by Uri Guttman. All rights...
  15. billbose

    blocking a port

    Can somebody tell how to block all incoming requests to a port(any port where lsof mentions LISTEN) in Sun Solaris 8 without even touching/restarting the "Listening" service. A scripting solution would be desired in this case. I tried to put a comment /etc/services file and it didnt work. And...
  16. billbose

    calculate epoch time

    How to calculate the epoch time for yesterday at 12AM? Thanks in advance.
  17. billbose

    what date was last monday?

    anybody help me on this?
  18. billbose

    convert vbscript to exe file

    How to convert a script written in vbscript to a windows executable so that i dont need to use the windows scripting host to run it.
  19. billbose

    user with restricted access to commands

    Can somebody tell me how to allow a user with restricted access to commands, say cd, ls and view and nothing else?
  20. billbose

    merging files with heading

    I have a collection of text documents(ascii file name and the heading: my %doc_collection = ( 'joe.txt' => "Joes Collection" 'john.txt' => "Johnson's Collection" 'mary.txt' => "Mary's notes" 'liz.txt' => "Liz's articles" ......... ) ; In order to open 'ONE' ascii document, say joe's...

Part and Inventory Search

Back
Top