Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

is it possible to insert the following code ( timer ) in the dialog progress bar ?

date1=`date +%s`; 
   while true; do 
   echo -ne "$(date -u --date @$((`date +%s` - $date1)) +%H:%M:%S)\r"; 
  done

.

  dialog --title "File upgrade" --gauge "Please wait..." 10 70 0

my target is to view the timer clock in the progress bar window the clock will stop when the progress bar ended

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.