I am writing a simple basic bash script (starting with
#! /bin/bash, file format is
.sh) and I am trying to make a progress bar work:
#!/bin/bash echo "You are running in LXDE mode. Answer 'yes' or 'no' on the following question to continue (or not) in LXDE mode." zenity --question --text='Do you want to continue in LXDE mode?' --ok-label=Yes --cancel-label=No echo "Please enter your username and password to continue because the following command needs root privileges." zenity --password --username echo "Please enter today's date:" zenity --calendar --text="Please enter today's date:" echo "Please enter your name:" zenity --entry --text='Please enter your name on the text entry below:' echo "Analyzing data..." zenity --info --text='Now begin analyzing data. If it takes more than 40 seconds, click on "Cancel".' zenity --progress --title='Analyzing data...' --pulsate
I have tried to make it move from 0% to 100%, and nothing happened. It was stuck at 0%. I have also tried to make it pulsate by using the
--pulsate option, still at 0% doing nothing.
Can anyone please help me? Any help would be appreciated.
File type not supportedfor both links. Why not copy script directly into your question?