Search Results

Search: Posts Made By: muraliinfy04
5,809
Posted By ahamed101
You should not echo it, what i gave was an...
You should not echo it, what i gave was an example.Try this...

sshpass -p 'password' ssh -o StrictHostKeyChecking=no root@storageip 'isi_for_array -s \"isi auth ads time --sync --force\" '
...
1,245
Posted By Yoda
lsvdisk | awk ' !/[Cc][Aa][Pp]/ { ...
lsvdisk | awk '
!/[Cc][Aa][Pp]/ {
match ( $8, /[A-Z]*$/, A )
R[A[0]] += $8
}
END {
for ( k in R )
...
1,245
Posted By Scrutinizer
Try something like: awk...
Try something like:
awk '{t+=$8/($8~/GB/?1024:1)} END{print t, "TB"}'
It could also be further combined with the grep statement (and further refined if there are also MB or EB, for example)
Forum: Solaris 02-13-2013
13,830
Posted By GP81
Did you enabled root login in...
Did you enabled root login in /etc/ssh/sshd_config?
There should be:

PermitRootLogin yes
4,104
Posted By jlliagre
if [ "$userid" = "mvaddadi" ]
if [ "$userid" = "mvaddadi" ]
10,663
Posted By clx
man test -d file True if...
man test

-d file True if file exists and is a directory.


So you could use it like...

if [ -d /export/home/vomappservers/spa/common/5.0 ]; then
echo directory already...
10,663
Posted By zaxxon
As a hint, scroll down this thread. The forum...
As a hint, scroll down this thread. The forum software has some suggestions for your problem in older threads, as this is a often asked question. There is also a search function for this forum and as...
1,370
Posted By pamu
You can just give this....
echo "Please enter M for make file and B for make and build file, followed by [ENTER]:"
read option_mb

if [[ "$option_mb" == "M" ]]
then
command for make file
else
if [[ "$option_mb" ==...
Forum: Solaris 04-26-2012
9,452
Posted By jlliagre
To know if a symbolic link points to a file or a...
To know if a symbolic link points to a file or a directory you can simply use the test -f and test -dcommands.

eg:file=/some/name
if [ -L $file -a ! -d $file -a ! -f $file ]
then
echo "$file...
Forum: Solaris 04-26-2012
9,452
Posted By methyl
Broken links have a link count (the 2nd field in...
Broken links have a link count (the 2nd field in ls -ladL) of zero.

ls -lad abc2
lrwxr-xr-x 1 root sys 4 Apr 26 16:02 abc2 -> abc1
ls -ladL abc2
---------- 0 root ...
16,572
Posted By rangarasan
bash
Yes, You can :)

Try this one,


#! /usr/bin/bash
if [ $# -ne 2 ];then
echo "Usage: $0 [location] [outputfile]";
exit;
fi
dir=$1
output=$2
filecnt=0
dircnt=0
cd $dir
rm $output
for...
5,308
Posted By rangarasan
awk
Just change the makefile name that is your input file right ?


makefile="File"


Cheers,
Ranga:)
4,680
Posted By ctsgnb
Check that your listparam looks like mine (see my...
Check that your listparam looks like mine (see my previous post, i have set some things in bold and red to bring your attention on those points)
in listparam,
<param> 1|means : <param> should...
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 06:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy