O que este script python está fazendo?

0

O que eu preciso é de um arquivo executável (para que eu possa clicar duas vezes e abrir) do cliente torrent Bit Deluge. Eu encontrei isso, deluge.py é minha pasta usr / bin .

#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'deluge==1.3.5','gui_scripts','deluge'
__requires__ = 'deluge==1.3.5'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.exit(load_entry_point('deluge==1.3.5', 'gui_scripts', 'deluge')())

Eu preciso desse arquivo ou comando para entrar no programa de "agenda de tarefas" para abri-lo em um cronograma. Então, esse roteiro servirá ao propósito. Posso usar outro método?

    
por Cadogen West 13.05.2013 / 08:42

1 resposta

0

Este é um artigo sobre o gnome Task Scheduler link

Gnome-schedule is a graphical user interface that leverages the power of vixie-cron, dcron and at to manage your crontab file and provide an easy way to schedule tasks on your computer. It supports recurrent (periodical) tasks and tasks that happen only once in the future. It is written in Python using pygtk, and has been developed, tested and packaged for various Linux distributions.

Awesome features

  • Supports custom titles and icons for your tasks so that they are more easily to keep track of.
  • Templates support so that you won't have to create the same task again and again; these are saved in gconf and may easily ship them with, say, a Linux distribution.
  • If run as root, you can edit any user's crontab and "at" tasks.
  • Human-readable strings like "Every hour" instead of "0 * * * *"
  • Advanced mode for crontab experts
  • Provides a "panel applet" where you can manage tasks from a dropdown menu.
  • Predefined common expressions like: every minute, every week, tomorrow, next week
  • A calendar allows you to choose the day you want a task executed

Install gnome-schedule in Ubuntu

Open the terminal and run the following command

sudo apt-get install gnome-schedule
    
por thefourtheye 13.05.2013 / 11:10