You are not logged in.
Alright found the problem. When using source I shouldnt include#!/bin/bash..
Without it works just fine now.
The ultimate Archlinux release name: "I am your father"
Offline
How can i time the time it takes for the script to execute in the script...
I could run another script that executes the main script with time: time restore.sh
But I dont want another script just for that.. Is there a way to do this in the main script?
The ultimate Archlinux release name: "I am your father"
Offline
Alright.. I am thinking of echo'ing date into a log.txt at the beginning of the script and at the end of the script. There I can see the time difference.
The ultimate Archlinux release name: "I am your father"
Offline
you could also add this to the beginning of your app:
if ! [ "$TIME_ENABLED" ]; then
TIME_ENABLED="1" time $0 $@
exit;
fi
Offline
Im done with the script right now.. Gonna test it out with vmware, and see it if works as i wish it will.
Its a very veeery simple script... actually my first script more than 10 lines.. Will probably build it out more eventually.
thx again.
The ultimate Archlinux release name: "I am your father"
Offline