Can this be modified so it’s output can be used in gxmessage ?
#!/bin/bash
#
# Show size of dir using gxmessage
#
clear
a=`du /home/andy/Downloads/` #
echo "$a" # The quoted variable preserves whitespace.
P.S. How come # in front are stripped out ?
I’ve edited your post so it displays properly. Edit it yourself to see what I did. Those 3 characters that look like quotes are accents (below Escape) and I made it straight “text”.
I do not see any difference.
I would like to use gxmessage to show the output.
Here is what I would like to use, assuming you have gxmessage installed.
gxmessage -fg red -font ‘sans 20’ -timeout 3 ’ BACKING UP FILES FOR UBUNTU_MATE 16.04.3 LTS’
gxmessage lets you change font size,color,time it displays, etc.
I'm not sure your goal. When I run that gxmessage command, up pops this message:
My last post was addressing how "#" was being stripped out of the post here.
Thanks for the help with displaying # characters.
My goals is to display the result of du /home/andy/Downloads/ in a format that has an adjustable font and will also shutdown after a set amount of time.
#!/bin/bash
# Ubuntu_Mate 16.04
# gxmessage help page located here
# http://manpages.ubuntu.com/manpages/precise/man1/gxmessage.1.html
#
#
#-file FILENAME
# Causes the named file to be used as the message source. If a
# dash (-) is used in place of FILENAME, the message will be read
# from stdin.
# DOES NOT WORK IN ROOT DIRECTORIES !!
du /home/andy/Downloads/ > Downloads_Size.txt # Send size of directory to text file
gxmessage -fg red -font 'sans 20' -timeout 3 -file Downloads_Size.txt