Author Topic: zenity again  (Read 2921 times)

Offline critter

  • Full Member
  • ***
  • Posts: 220
Re: zenity again
« Reply #15 on: December 21, 2010, 03:38:14 PM »
Quote
Had a thought. (Yea. It hurt. Wink) After the file is saved to your /home, you could, I think, change its permissions to be readable by you. Just add the lines to your script or write a separate script for the purpose and have it called after saving the file. Just a thought.

Good thinkin' Neal

I'll have a look a look at that.

I particularly like the idea of calling a sub-script, this could be scheduled to run at a new log-in. Hmm!

I think that I owe you a coffee, thanks  ;)

critter, have you tried calling the script with cron, and in place of having the Zenity line in the same script, put it in another and call that from the last line of the Cron script?

.....  seems foolish now that I have written it down ......   :-\

Doesn't seem foolish to me! Would need to export some stuff to the newly spawned shell so….

Hey I got stuff to work with and I'd put this one to bed.
Thanks guys.

Just19, Do you want coffee or Guinness?  :)
Motherboard   Gigabyte Z68X-UD3H-B3
Hard Drives      2 x Maxtor STM350032 500GB SATA
Memory      16GB RAM
Processor      Intel core i5 3.30GHz
Video         nVidia GeForce GT430
Sound      HDA Intel PCH
PCLinuxOS          KDE

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: zenity again
« Reply #16 on: December 21, 2010, 03:45:34 PM »
Irish Coffee sounds enticing    ;D ;D ;D

Hope something works out for ye    ;)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: zenity again
« Reply #17 on: December 21, 2010, 03:47:01 PM »
Irish Coffee sounds enticing    ;D ;D ;D

It sure does! :D :D :D :D :D


Offline critter

  • Full Member
  • ***
  • Posts: 220
Re: zenity again
« Reply #18 on: December 21, 2010, 03:56:56 PM »
Ok!

Three Irish coffees please waiter. er, (looks around nervously) old Polacks paying - he'll be along in a moment :P
Motherboard   Gigabyte Z68X-UD3H-B3
Hard Drives      2 x Maxtor STM350032 500GB SATA
Memory      16GB RAM
Processor      Intel core i5 3.30GHz
Video         nVidia GeForce GT430
Sound      HDA Intel PCH
PCLinuxOS          KDE

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: zenity again
« Reply #19 on: December 21, 2010, 04:05:56 PM »
Ok!

Three Irish coffees please waiter. er, (looks around nervously) old Polacks paying - he'll be along in a moment :P


Make mine extra, extra large. :D

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: zenity again
« Reply #20 on: December 21, 2010, 04:09:59 PM »
Tell ye what .....  hold off on the coffee and just fill-'er up with the best irish  ;)

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: zenity again
« Reply #21 on: December 21, 2010, 04:16:12 PM »
 ;D ;D ;D Good idea at this time of the day.

Offline Village Idiot

  • Hero Member
  • *****
  • Posts: 2345
  • Have A Nice Day.
Re: zenity again
« Reply #22 on: December 21, 2010, 10:33:20 PM »
I saw this thread awhile ago and today's post made me wonder why are you running the script as root? I have a machine here which, amongst other things, runs continuously sucking data off the internet including a daily repo rsync as an ordinary user joe-sixpack cronjob.

Why man, why?

Why do you say the script runs better as root? Then you have problems with the files/ownership/permissions. Why?    ??? ??? ???

Because all of the files in my personal repository have only root r/w permissions and the scripts that access them are also restricted. This way only an administrator can cause a catastrophe. I am the only administrator and I know just how much damage I am capable of. Root admin. makes me think twice - Damage limitation ;)

Accidentally overwriting a 12 - 15 GB repository is a seriously 'bad hair day'. Believe me on this, I know! ::)

BTW. Thanks for the reply. :)

I sort-of agree but I should have mentioned that I use a different user account to preform these background tasks. Indeed, I believe I would be limiting the 'catastrophe' of damage to the system when I do maintenance on that side of the system because I am not root. Not that I am worried, I have another trick up my sleeve in case if data loss...  backups!

Dude, backup your data.  8) I promise you not have to worry about a catastrophe once you do.  ;)

 :)
$ fortune
No Microsoft products were used in any way for the creation of this message.
If you are using a Microsoft product to view it, BEWARE! - I'm not
responsible for any harm you might encounter as a result.

Offline critter

  • Full Member
  • ***
  • Posts: 220
Re: zenity again
« Reply #23 on: December 22, 2010, 02:13:18 PM »
I back up my data - now, having learned the hard way!

But even so, backup, test the backup, backup the backup. Then one day you need the backup and it just works. That would be real nice.

I want automatic full backups, automatic differential and incremental backups, and I want confirmation that it worked.
Not that I have anything worth keeping, I just want to get this set up. 8)

Zenity just doesn't want to play here but on reflection it seems to be a bad idea to rely on the fact that I am logged in to be able to receive the notification. Currently working on getting sendmail to e-mail me the results locally and having some results. ;D

So gentlemen, skip the coffee, just the Irish - is Bushmills OK?  :)
Motherboard   Gigabyte Z68X-UD3H-B3
Hard Drives      2 x Maxtor STM350032 500GB SATA
Memory      16GB RAM
Processor      Intel core i5 3.30GHz
Video         nVidia GeForce GT430
Sound      HDA Intel PCH
PCLinuxOS          KDE

Offline Village Idiot

  • Hero Member
  • *****
  • Posts: 2345
  • Have A Nice Day.
Re: zenity again
« Reply #24 on: December 22, 2010, 03:56:45 PM »
I back up my data - now, having learned the hard way!

But even so, backup, test the backup, backup the backup. Then one day you need the backup and it just works. That would be real nice.

I want automatic full backups, automatic differential and incremental backups, and I want confirmation that it worked.
Not that I have anything worth keeping, I just want to get this set up. 8)




Rsync is your friend.  :)

Quote
Zenity just doesn't want to play here but on reflection it seems to be a bad idea to rely on the fact that I am logged in to be able to receive the notification. Currently working on getting sendmail to e-mail me the results locally and having some results. ;D




I also have running a web server which I can point any browser at. When I'm away from the house the server is allowed to be accessed from the web. I've got activity reports handy when ever I need them. And, of course, the reports are backed up also...  :P

Quote
So gentlemen, skip the coffee, just the Irish - is Bushmills OK?  :)


Someone gave me one of these for Christmas:
http://draughtkeg.com.au/home/

If nobody gave you one of these from Christmas, I'd suggest getting some different friends early next year.
 :D
$ fortune
No Microsoft products were used in any way for the creation of this message.
If you are using a Microsoft product to view it, BEWARE! - I'm not
responsible for any harm you might encounter as a result.

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: zenity again
« Reply #25 on: December 22, 2010, 04:17:29 PM »
Quote
So gentlemen, skip the coffee, just the Irish - is Bushmills OK?

If it is Black Bush ......  most definitely  ;)


Quote
If nobody gave you one of these from Christmas, I'd suggest getting some different friends early next year.

My friends know that I would ask for an alternative ......  don;t take that stuff!
« Last Edit: December 22, 2010, 04:21:24 PM by Just19 »