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

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

    help with expect script

    I have following expect script, I need help to get uname -m variable and assign to if statement. Thanks! #!/usr/bin/expect set USER [lindex $argv 0] set USER_PASS [lindex $argv 1] set fid [open /path/iplist.dat] set contents [read -nonewline $fid] close $fid foreach IPADDR [split $contents...
  2. uuperl

    Solaris 10 update 8 upgrade slow mysql performance

    Current Configuration: - T5120 running Solaris 10 update 4 8/7 with LDOM 1.3 - T5120 has 4 146G disks and has raid 1 (1 & 2, 3 & 4) - Primary has 4 VCPUs and 4G memory - Primary control has 8 ldoms, 2nd ldom is database server - database server has two virtual disks, 1st for OS and 2nd for...
  3. uuperl

    Type of on board clock for T5120 ?

    Hi, Does anyone know what type of on board system clock for T5120? Thanks!
  4. uuperl

    deny root to change expired password via ssh

    Hi, Is there way to deny user (root) to change it's expired password via ssh connection? I have Solaris 10 ssh 2, when root password expired i can ssh to the box with root account then allow me to reset right there, but deny access to the box b/c the sshd_configure already set Permit root...
  5. uuperl

    Regular expression help

    Hi, I have the following pattern: echo "Full Name [TEXT]" | sed 's/.* //' output will be [TEXT] echo "[TEXT] Full Name" | sed 's/ .*//' output will be [TEXT] How to parse if [TEXT] in the middle, such as "FULL [TEXT] Name" or "FULL Name [TEXT] 123-902-1254" How to print out only the [TEXT]...
  6. uuperl

    bash array passing args

    Hi, I have question about the following script. If I define the variable in the script, then the output came out correct. My question is if I passing FOO and BAR as args through script, then the output is wrong. How can I passing correct through args through script? thanks! #!/bin/sh...
  7. uuperl

    Unix: bprestore command help

    Hi, I have server A, using bpbackup in the script to backup files. My question is can I run command bprestore from server B, which has netbackup installed. I want run bprestore from server B and restore some files which backed up from server A and put on Server B. I did the following and does...
  8. uuperl

    ALOM vs RSC for Sun V series

    Hi, I just want to know if the following are correct: We have these Servers: V240, V245, V480, V880, V890 ALOM 1.6 only apply to V240 and V245 RSC 2.2 only apply to V480, V880, V890 ALOM 1.6 supports SSH, but RSC 2.2 does not. Can someone please let me know if this correct? If RSC 2.2 only...
  9. uuperl

    Korn Shell Array Help

    Hi, #!/bin/sh set -A line1 two three four five set -A line2 a b c d e f print "Enter your array name" read arrayname print ${$arrayname[0]} Question: Can I use $arrayname? Somehow it does not work. thanks!
  10. uuperl

    nesting loop help

    Hi, I need print out like this: i=one two three four five p=a b c d e output should be: one a two b three c four d five e here is what I have but is not doing the trick: for i in one two three four five do for p in a b c d e do echo $i $p done done Thanks!
  11. uuperl

    Solaris Jumpstart Server

    Hi, I have Solaris 10 Jumpstart server already setup. Now I have flasharchive which created from Solaris 9 box. Can I use this Solaris 10 Jumpstart server to install this flash? thx.
  12. uuperl

    Perl - Oracle row count

    All, I have problem getting rows count from Oracle DB: $sth = $dbh->prepare("select * from tbl") or die "Can not execute: $DBI::errstr"; $sth->execute(); $total_rec = $sth->rows; Some how the $total_rec is always zero even there are many records. I have read some other people posting...
  13. uuperl

    Perl & Oracle, module questions

    All, I try to use perl to connect to Oracle database, I know that need DBI or DBD::Oracle module. If the server that I am working on does not allow to install these. Can I use as following? ---------------------------------- #!/usr/bin/perl #use DBI; require 'DBI.pm'; require 'Oracle.pm'...
  14. uuperl

    Regular Expression Help

    I have problem with regular expression on this line: if ( $systypeopt !~ /[adri]{0,1}/ ) I want valid input like a or a d or a d i or d r i, etc each option should be appear once in input if any of the option are out of these four also should be failed and then redo. Thanks! #!/usr/bin/perl...
  15. uuperl

    Package name in Solaris 10

    Hi, I try to uninstall the following path: /usr/spool/lp/model/ppd/system/foomatic for all the printer model files. Is there a Solaris 10 Package name associate with these files that I can use pkgrm to do? Thanks!
  16. uuperl

    DST not working on Solaris 10

    All, I have applied the following two patches on Solaris 10: 122032-04 119689-07 Then rebooted, the time still not working. Thanks!
  17. uuperl

    Can not Read all disks after install Solaris 10

    Hi, I just installed Solaris 10 on Sun 450 and now only can read all 4 disk on c0. However when I move other three disk except the root disk to different slot, then these three disks can not be read after boot backup. Can you some one please help. Is there any Sun Patch for Solaris 10 that I...
  18. uuperl

    How to connect to MS SQL server using PERL in UNIX

    Hi, What kind of module beside (DBI) do i have to install in order to connect MS SQL server with PERL in UNIX environment? Thanks!
  19. uuperl

    How to print duplicate entries on same line

    Hi, I have the following input file: user1:staff user1:mis user2:finance user2:payroll user3:hr user4:engineer user4:IT user5:facility How to print the above input file to output file as: user1:staff,mis user2:finance,payroll user3:hr user4:engineer,IT user5:facility Any help or suggestion...

Part and Inventory Search

Back
Top