Search Results

Search: Posts Made By: navlelo
2,198
Posted By navlelo
script to write PIDs to a file
script to write PIDs to a file

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables...
9,364
Posted By navlelo
(standard_in) 1: syntax error (standard_in) 1:...
(standard_in) 1: syntax error
(standard_in) 1: illegal character: :


without | bc


~/oblig1$ bash oblig2.sh
( ( oblig2.sh: * 60) * line ) + ( ( oblig2.sh: * 60) * line ) + ( (...
9,364
Posted By navlelo
#!/bin/bash ( for I in {1} do ...
#!/bin/bash
(
for I in {1}
do
/usr/bin/time -f "%E" ~/oblig1/oblig1a.sh >/dev/null 2>&1
done | while IFS=":." read MIN SEC TENTH
do
printf " %s " "( ( $MIN * 60) * $SEC ) +"
done
)

...
9,364
Posted By navlelo
that will bring me back to the loooong list of...
that will bring me back to the loooong list of standard_in errors I had before. it pretty much puts me back where I was without >/dev/null by the looks of it when I remove | bc to check again.

it...
9,364
Posted By navlelo
~/oblig1$ bash oblig2.sh (standard_in) 2:...
~/oblig1$ bash oblig2.sh
(standard_in) 2: syntax error
(standard_in) 2: syntax error
(standard_in) 3: syntax error




/usr/bin/time -f "%E" ~/oblig1/oblig1a.sh >/dev/null 2>&1
9,364
Posted By navlelo
shit got messy without the | bc ... x) ...
shit got messy without the | bc ... x)


~/oblig1$ bash oblig2.sh
(
( ( /home/oblig1/oblig1a * 60) * sh ) +
( ( --2011-10-12 20 * 60) * 03 ) +
( ( Løser osyda50 * 60) * hive ) +
( (...
9,364
Posted By navlelo
0:00.05 (elapsed) indeed, forgot the space there....
0:00.05 (elapsed) indeed, forgot the space there. changed it to "%E" to only get the numbers.

---------- Post updated at 11:42 AM ---------- Previous update was at 11:22 AM ----------

...
9,364
Posted By navlelo
well with that format I print 0:00.00elapsed ,...
well with that format I print 0:00.00elapsed , asuming minutes:seconds.tenth of a second. I'd be interested in adding up all the seconds.tenths of seconds during the loop, then averaging by dividing...
9,364
Posted By navlelo
ok, not really got a clue how, but thanks. trying...
ok, not really got a clue how, but thanks. trying to look into it :D
9,364
Posted By navlelo
Shell Script average runtime
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:
Make a bash...
1,869
Posted By navlelo
ah yeh, thanks man. if you could look into the...
ah yeh, thanks man. if you could look into the snippet at the end of http://unix.com/homework-coursework-questions/168952-shell-script-average-runtime.html , does the same with awk, but I need to run...
1,869
Posted By navlelo
shell script for finding average runtime of other script
so I've made a shell script that downloads 6 files in succession from a given url, then deletes them. Now I want to time the script, and the average time it uses by running it ~100 times. My problem...
Showing results 1 to 12 of 12

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