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...
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...
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...
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]...
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...
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...
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...
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!
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!
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.
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...
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'...
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...
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!
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.