I am calling blktrace tool from my Perl code.
The output of this tool gets saved on the current directory.
From my perl code I want to go to "/tmp/xyz" directory.
I know on terminal i can achieve it by "cd /tmp/xyz".
But then how to do it from my perl code ??
Actually through my perl code I am generating some files and I want to store them at a particular location in "/tmp" directory.
So how can I achieve that ??
Hi again,
I have a GUI which accepts the value of the scheduler.
This value is then saved in a variable.
So, how can i use that variable in echo command.
Kindly help...
And as i run again and again its pid changes every time.
I can find the pid by using system("pidof -s blktrace");, but then how can i use this information further to stop blktrace execution.
Hi everyone,
I am executing "blktrace" on my /dev/sda.
In my application i have made a GUI which lets user to choose when he wants to stop "blktrace" execution.
Now how can achieve it ??
Also how can i pass "Ctrl+C" to terminal from a perl script ??
Kindly help..
How to apply color to a label's text, a background color and a background image to a window while making a GUI using Perl/tk.
And also how can we place a label at a desired location.
i.e. desired x-y coordinate
How can we change the scheduler from "cfq" (by default) to "noop" through code.
Basically I am working with Perl.
I know how we can change it manually
"echo noop > /sys/block/sda/queue/scheduler"
but how to do it via code.
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.