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 TouchToneTommy 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. 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

    Jumpstart problems

    I would try the following command at ok prompt: ok boot net -v - install -v will give you more output (verbose), so you might know what is going on
  4. uuperl

    Type of on board clock for T5120 ?

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

    email sendout without domain name

    You have to change line in the file /etc/mail/sendmail.cf # my official domain name # ... define this only if sendmail cannot automatically determine your domain #Dj$w.Foo.COM for example your domain name is: example.com change last line to: Djexample.com then restart sendmail
  6. 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...
  7. uuperl

    Regular expression help

    Thanks Steve, i always want to understand something before I want to use it. can you explain to me the following line: print "$1\n" if /\[([^\]]+)/; Thanks!
  8. uuperl

    Regular expression help

    Hello Steve, I want capture everything inside [ ] and the text inside it. basically i just use grep to capture the pattern in a file. Thanks!
  9. 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]...
  10. uuperl

    bash array passing args

    Here is my issue: When I define the FOO and BAR variable inside the script, then the output will be correct like the following: bar foo string string some text other text When I passing the variable FOO and BAR through script, then the output will not work $ ./test "bar string 'some text'"...
  11. 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...
  12. 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...
  13. 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...
  14. uuperl

    Korn Shell Array Help

    I got the solution from another post in this forum: should be: eval print \${$arrayname[0]}
  15. 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!
  16. 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!
  17. 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.
  18. 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...
  19. 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'...
  20. uuperl

    Regular Expression Help

    You are all great help on this. Thank you so much for jump in to help me out for this issue!!!

Part and Inventory Search

Back
Top