Personal tools
You are here: Home UiT files-uit dowork.sh

dowork.sh

by Roy Dragseth last modified Mar 03, 2009 11:50 AM

dowork.sh — text/x-sh, 0Kb

File contents

#!/bin/sh
# Fake some work, $1 is the task number
# Change this to whatever you want to have done.

#
#sleep between 0 and 100 secs
let sleeptime=10*$RANDOM/32768
echo "task $1 is sleeping for $sleeptime seconds"
sleep $sleeptime
echo "task $1 has slept for $sleeptime seconds."

Document Actions