Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: shriyer
2,091
Posted By shriyer
wow, i wasnt chomping the proc variable that i...
wow, i wasnt chomping the proc variable that i added in later.

Everytime I go back to perl, all my frustrations begin and end with forgetting to chomp something!
2,091
Posted By shriyer
perl if condition problem
if ( ( ( $val eq "ssd_max_throttle" ) || ( $val eq "ssd_io_time" ) ) && ( $proc eq "i386" ) ) {
print "im in";
next...
3,438
Posted By shriyer
thanks chipcmc , yeah i didnt see you had already...
thanks chipcmc , yeah i didnt see you had already escaped the [ ;)
3,438
Posted By shriyer
thanks guys, yeah, i had to escape the opening...
thanks guys, yeah, i had to escape the opening brace [ ...
thanks for the help
3,438
Posted By shriyer
Yes exactly, I just want lines that include...
Yes exactly,
I just want lines that include Total [kmem_*]

But if I do a grep kmem, it ends up showing, strings which include kmem, like [segkmem_*....
3,438
Posted By shriyer
Both of the solutions work, but they are...
Both of the solutions work, but they are hardcoding according to the current output.

Lets say, we dont know how many kmem_*'s are gonna be there in the op, then head -4 wont work..

If...
3,438
Posted By shriyer
Shell script grep help
Hey there, newbie question :

echo "::kmastat" | /usr/bin/mdb -k | grep Total | grep "kmem_*"
Total [kmem_msb] 17326080 432853 0
Total [kmem_va] ...
2,796
Posted By shriyer
Splitting a list @list by space delimiter so i can access it by using $list[0 ..1..2]
EDIT : This is for perl
@data2 = grep(/$data[1]/, @list_now);

This gives me @data2 as
Printing data2 11 testzone1 running /zones/testzone1 ***-*****-****-*****-***** native shared


But I...
Forum: Solaris 07-27-2009
1,851
Posted By shriyer
Which zones will be up on reboot ?
Hey there, I m writing a system managament tool, which for Solaris-land, will have functionality to check currently up zones, compare with those up at the "last good system reference point ", and...
5,075
Posted By shriyer
Executing commands through shell variable
Hey there,
I am trying to pass a command as argument to a function.
The command shows up in $1.
Now I want to execute this command, but if I do a $1

./sample
"bla/blaprintf: warning: ignoring...
Forum: Red Hat 07-22-2009
2,833
Posted By shriyer
Netdump over bonded interface ?
Netdump over bonded interface ?
Hey there,..
I have heard from admins, that netdump usually fails over a bonded network interface.

I have written a multi-OS checkdump script , which checks if...
16,476
Posted By shriyer
Thanks for the reply and info man... I'll try...
Thanks for the reply and info man...
I'll try that..
It will actually run on thousands of servers, thats the problem. this check-dump script will run on each server, and each will remote login to...
16,476
Posted By shriyer
Thanks for the reply, system shock,.. Can we...
Thanks for the reply, system shock,..
Can we send a sequence of send 's without any expect's ? Or do I need to have expect "*" 's all along the way .. ?


#!/usr/bin/expect -f
spawn ssh -o...
16,476
Posted By shriyer
I m setting the variable result to the result of...
I m setting the variable result to the result of the df command .
If I do this with a send command, and then reference $result.. it says cant read "result" : no such variable ...
16,476
Posted By shriyer
Expect script
Expect script help
Hey,
I am writing an expect script to be called by a ksh script. The expect script as expect will automate ssh login, and check for /var/crash (dump) space on the server, and...
1,540
Posted By shriyer
Expect script help
Expect script help
Hey,
I am writing an expect script to be called by a ksh script. The expect script as expect will automate ssh login, and check for /var/crash (dump) space on the server, and...
Showing results 1 to 16 of 16

 

Featured Tech Videos

All times are GMT -4. The time now is 01:14 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy