Jump to content

Ever wanted to know how much space you had free?


DOlson
 Share

Recommended Posts

Try this Germ:

zenity --info --title="Disk Usage Report" --text="  

You have $FREE1 free space on $NAME1, $USED1 is in use.

You have $FREE2 free space on $NAME2, $USED2 is in use.

You have $FREE3 free space on $NAME3, $USED3 is in use."

I got it working after deleting the slashes. (using zenity-1.0-1mdk)

Link to comment
Share on other sites

Try this Germ:
zenity --info --title="Disk Usage Report" --text=" 

 

You have $FREE1 free space on $NAME1, $USED1 is in use.

You have $FREE2 free space on $NAME2, $USED2 is in use.

You have $FREE3 free space on $NAME3, $USED3 is in use."

I got it working after deleting the slashes. (using zenity-1.0-1mdk)

 

OK, I gave it a try and here's the output:

You have free space on Home, is in use 

You have free space on Root, is in use 

You have free space on Backup, is in use

 

I get three lines now, but no info. :shock:

Link to comment
Share on other sites

That's strange. Oh well, glad you figured out how to fix it. :)

Germ:

Unfortunately, I don't know how to explain it, consider the fact that I don't know anything about script and what I did was just to copy, paste and save the file to /usr/local/bin. Certainly I insisted a little and by chance I got it working. But I agree with Dolson's statement. That's quite strange!!!

Go to my very primitive and first homepage, click on "my primary desktop" link and you will see (if geocities allows) the the Disk usage report window and Eterm with my gdf.sh file.

Sorry for not being able to help you out.

Link to comment
Share on other sites

duh...stupid me. :oops: I had three versions of the script open, copying, pasteing, and editing. I looked at the script again, removed the two instances of n and all is well.

 

Hey william, that's a nice home page and a good start. Very clean. I like that. :wink:

Link to comment
Share on other sites

Okay, I'm guessing it's a problem with the version of zenity you're using.

 

I'm using version 1.4 as packaged by Debian, and you all are using 1.0? Did it work properly for you, bvc?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...