Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need to write a wrapper script for iostat functionality . in solaris unix i have iostat but in linux i dont have iostat , so I need to write a wrapper script which does all the functionality of iostat . can anyone help me? i am entirely new to scripting
I need to write a wrapper script for iostat functionality . in solaris unix i have iostat but in linux i dont have iostat , so I need to write a wrapper script which does all the functionality of iostat . can anyone help me? i am entirely new to scripting
First, iostat is available for Linux. If you don't have it, you can install it. Since you don't say what version/distro of Linux, we can't tell you how.
Second, if you need help writing a script, there are thousands of scripting tutorials you can find easily with Google. They can help you get started, and please come back and post any specific problems/questions you have (along with your script), and we can try to help.
Thanks for your reply.
I need to writer a wrapper script for iostat -c and iostat -E . not sure how to start with.
if you can kindly help me then I would be very thankful to you...
Thanks for your reply.
I need to writer a wrapper script for iostat -c and iostat -E . not sure how to start with.
if you can kindly help me then I would be very thankful to you...
You don't say what you're trying to do, what you want to see, etc., so how can anyone here help you write it?
If you don't know how to write a script, then as I suggested before, go to Google, type in "linux bash scripting tutorials", and press ENTER. Pick one of the thousands of hits, and go from there. Again, we are NOT going to write your script for you, but will HELP you if you get stuck...you will need to post what you've written, and what problems you have.
thanks...
iostat is in my linux...
but my requirement is to write a script which helps me to call iostat indirectly like .. instead of calling iostat -c
it will be myiostat -c . can you help me to write a script which does this
iostat is in my linux...
but my requirement is to write a script which helps me to call iostat indirectly like .. instead of calling iostat -c
it will be myiostat -c . can you help me to write a script which does this
thanks...
iostat is in my linux...
but my requirement is to write a script which helps me to call iostat indirectly like .. instead of calling iostat -c
it will be myiostat -c . can you help me to write a script which does this
That is nothing like what you originally said. It doesn't make any sense to me.
#! /bin/ksh
function myiostat
{
# Built in commands used in this function
CMD_USR_PATH="/usr/bin"
CMD_PATH="/bin"
.........
[[ $1 = "-E" ]]
then
.......
return
}
does anyone knows to write this type of script. ?
Yes. Now, go back to my first post, and re-read the part about looking up scripting tutorials. Again, we are NOT going to write this script for you, but we will HELP you with it. There are many, many examples to help you along.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.