Search Results

Search: Posts Made By: jeriryan87
9,713
Posted By jeriryan87
Thanks again vgersh99.
Thanks again vgersh99.
9,713
Posted By jeriryan87
I tried this but there seems to be a problem...
I tried this but there seems to be a problem since $var is 1.00, and not just 1. It says error token is ".00". Potentially the string could be any decimal number, so I guess I don't want integers,...
9,713
Posted By jeriryan87
I suppose the variable is a string, not an...
I suppose the variable is a string, not an integer. How would I convert this to do some arithmetic operations on it?
9,713
Posted By jeriryan87
Thanks vgersh99, that did it.
Thanks vgersh99, that did it.
9,713
Posted By jeriryan87
Assigning output of a command to variable
When I run time -p <command>, it outputs:
real X.XX
user X.XX
sys X.XXwhere X.XX is seconds. How I can take just that first number output, the seconds of real time, and assign that to a variable?
4,329
Posted By jeriryan87
Anyone know anything about this?
Anyone know anything about this?
4,329
Posted By jeriryan87
iSCSI speed problems
Hi all. I was able to set up an IBM Ultrium LTO 4 tape drive to use iSCSI (using open-iscsi drivers) to communicate with Red Hat, but it's going really slow, maxing out in tar and dd tests at like...
Forum: Filesystems, Disks and Memory 06-12-2008
4,823
Posted By jeriryan87
Appending files to a tape drive
I've starting playing with a tape drive for the first time. Its a new one, an IBM Ultrium LTO 4. After initially copying a file to the tape with tar cvf /dev/st0 /root/dummy, all subsequent files...
3,417
Posted By jeriryan87
Directing program output to a file
When I do

time tar cvf /dev/st0 /mnt/junk >> /root/benchlog, I want it to put the output of the time command into the benchlog file, but it put /mnt/junk. How do I get it to put the output of the...
27,829
Posted By jeriryan87
Bash squares and exponents
I'm trying to write a simple bash script and I need something like
var=2^(5+i)
where i is another variable. How would do I this in bash?
10,813
Posted By jeriryan87
Using the counter of a for loop in command line parameter
Say I have (in psuedocode)
For i=1 to 10
tar cvfb /... 5*i /junk(i)
end

What I mean is that I want each successive for loop to have the block size parameter be 5 times the current counter. ...
2,534
Posted By jeriryan87
Multiple Conditionals
Yet another question. I want to make something like this:

if [ $number1 -le 10 ]||[ $number2 -le 10 ]&&[ $number3 -le 10]
then
...
fi

but that apparently is not right. I want either the...
4,151
Posted By jeriryan87
New iteration of for-loop without incrementing?
Another question, is it possible to, in a for-loop incrementing until it reaches a certain number, to have it loop again without incrementing? Just have it drop what it is doing when it reaches this...
18,587
Posted By jeriryan87
Backticks within backticks?
Hi, I'm trying to do something like this: range= `expr `date '+%m'` - 1` and it does not work. How can I tell it to evaluate an expression within another expression evaluation? I was at first...
16,901
Posted By jeriryan87
Thanks a lot!
Thanks a lot!
16,901
Posted By jeriryan87
Non-integer calculations in bash
I'm new at scripting but I thought I was getting pretty good at it. I've hit a snag. I try to use expr to compute a fraction say: expr 3 / 4, and I'm getting zero. I guess it's just truncating to...
Showing results 1 to 16 of 16

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