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...
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
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...
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!
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]...
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'"...
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'...
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.