5

Execution time of pi calculation in shell scripts

view full story
linux-howto

http://unix.stackexchange.com – I have to run a couple of command lines on a shell script on Ubuntu, one of those is a pi calculation. It works fine when i run it on terminal via the following cmd line: time echo "scale=6500;4*a(1)" | bc -l But when I run it on a script I get no luck. Typing in time before I execute the script i.e. time ./filename.sh isn't enough as I have to also run other commands in the script. Any suggestions? (HowTos)