If you want to change selection, open document below and click on "Move attachment"
Putting functions in background - Linux Shell Scripting Tutorial - A Beginner's handbook y progress while making backup # Based on idea presnted by nixCraft forum user rockdalinux # Show progress dots progress(){ echo -n "$0: Please wait..." while true do echo -n "." sleep 5 done } <span>dobackup(){ # put backup commands here tar -zcvf /dev/st0 /home >/dev/null 2>&1 } # Start it in the background progress & # Save progress() PID # You need to use the PID to kill the function MYSELF=$! # Start backup # Transfer control to dobackup() dobackup # Kil
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.