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

    Where clause with wildcard

    I would like to use a single prepared statement (JDBC). For example: SELECT NAME WHERE REGION = ? AND SITE = ? The issue is that the region and site qualifiers are optional. Is there a way that I could set the region/site values to a wildcard, so that they don't get used?
  2. BryanY

    JDBC Connection Pool

    I'm trying to figure out how to set up a connection pool class using the Oracle thin driver. Any guidance or tutorials would be greatly appreciated. Thanks!
  3. BryanY

    Creating Random Strings

    Basically I would like to be able to specify a string length and generate a random string value. EX: string length = 7 output: fwirvbt I presume that I would use the rand() function, but I'm not sure how i would use it to generate character values. Thanks!
  4. BryanY

    Question about the Use command

    Ok, i need to include a .pm file in the current working directory (not from the perl module directories). So what would be the syntax to use?
  5. BryanY

    Help, Need to rebuild database

    Ok, So i'm using Solaris 9 with Oracle 9.2 I accidently wiped out everything in my /u03 directory which contained to redo log and the control file. Can anyone point me in the right direction as to what I need to do?
  6. BryanY

    Replacing a line

    I'd like to overwrite line 234 of a text file with a specific string. What is the easiest way to do this? Would i use sed?
  7. BryanY

    Question about SED

    I'd like to access a file and replace every instance of "TERM=sun" to "TERM=vt100". Normally i would just use the code sed -e 's/TERM=sun/vt100/' file But unfortunately, larger words also match. (For example "TERM=sun-color" gets changed to "TERM=vt100-color") How would i force it so that...
  8. BryanY

    Replace line

    I need to be able access a text file (about 20 lines) and basically just replace the first line with custom text without changing anything else. What is the best way to do this? (I understand that this would be much easier to do in Perl, but I don't have that option)
  9. BryanY

    ovoinstall

    The current way of installing OVO is to run the ovoinstall program which brings up a graphical wizard asking the user a long series of questions. I was wondering if there is a way to do a non-graphical install which could be scripted (automated) to save time when installing. [Runinning...
  10. BryanY

    Automatically mounting CDs?

    Is there any utility or commonly used program for automatically mounting CDs when they are inserted? (Similar to what Solaris does?)
  11. BryanY

    localetime

    I'm trying to store the date as a variable in the format dd-mm-yy. (Similar to date '+%m-%d-%y' in UNIX.) Unfortunately when i use the localtime module it doesn't return the single digit days and months with a preceding zero. (1-3-05 instead of 01-03-05) Is there a simple workaround...
  12. BryanY

    Pattern Matching

    I was wondering what symbol/syntax to use that would represent any type of whitespace. Basically i need to split each of the words in a string into seperate array elements. The only issue is that the words are seperated by an undefined amount of spaces or tabs. @data = split (/ /, $_); #...
  13. BryanY

    Calling another program

    I was wondering what the best way is to call a perl program from within another perl program. I basically just want to execute it and test whether it was succesful or returned an error code.
  14. BryanY

    How to trim the begining of a string

    What would be the best way to remove the first two characters from the begining of a string (or extract the last two characters)? In this case 2004 -> 04
  15. BryanY

    Timeout Function

    I'm trying to write some sort of function so that if too much time goes by (20 seconds) the script will break and exit. But i'm not sure about the best way to do that.
  16. BryanY

    Grep Question

    Ok, basically I want to search a text file to see if one word, or another word, or a third word is present. I tried grep -F 'first second third' file but it doesn't seem to work. Any suggestions? (i used /usr/xpg4/bin/grep [Solaris] )
  17. BryanY

    Typical Swap Size

    I'm just curious about how large most people set their swap partitions. I understand that the old '1.5X physical memory' rule is considered out of date. (Sun recommends 30% of physical memory for Solaris) So I was just wondering how you guys typically size it.
  18. BryanY

    Checking Ports

    How would I go about checking which ports are open/running specific services? Thanks!
  19. BryanY

    How to mount a USB DVD drive?

    I'm using an old V480R. The SCSI DVD drive stoped working and I'm wondering how to setup a USD DVD drive. (Solaris 9) - Thanks!
  20. BryanY

    Truncate a string

    Basically, I have a file location stored as a string. Ex: "/export/home/user/data.txt I would like to remove the filename from the path. Ex: "/export/home/user" How would I do that? ("/export/home/user/" is also OK)

Part and Inventory Search

Back
Top