Results 1 to 3 of 3

Thread: New in Ubuntu...Need Cron Job help

  1. #1
    Join Date
    Jul 2020
    Beans
    0

    New in Ubuntu...Need Cron Job help

    Hi,

    i totally new to Linux and i need help for a Cron Job.
    Under windows i had a script that printed a testpage every second Monday at 10AM.

    I now want to switch to Linux/Ubuntu but i have no idea how to set up something like that. I searched a lot but i dont understand what some people wrote.
    The Script what i found is:

    #!/bin/bash
    # Drucke Testseite auf dem Standarddrucker - Anzahl der Ausdrucke: -# 1
    lpr -# 1 '/home/administrator/Downloads/testbild.pdf'

    Can anybody help

    I'm using Ubuntu 20

  2. #2
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 18.04 Bionic Beaver

    Re: New in Ubuntu...Need Cron Job help

    here is the official guide: https://help.ubuntu.com/community/CronHowto

    digital ocean tutorial (they are easy to understand, so i use them often): https://www.digitalocean.com/communi...ks-ubuntu-1804

    if you need a GUI there is Corntab (the online crontab generator: http://corntab.com/ )
    or you can install GUI: https://www.ghacks.net/2011/03/09/sc...sy-to-use-gui/

    you already have the script you want to run, now you just need to edit crontab to make it run anyway you would like it to run.

    crontab works the same for a while now so it doesn't really matter if you have 20.04 of 18.04. process of setting it up should be more or less the same.
    Read the easy to understand, lots of pics Ubuntu manual.
    Do i need antivirus/firewall in linux?
    Disk backup (works on newer PC): Clonezilla
    User friendly full disk backup Redobackup is now back as Rescuezilla

  3. #3
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: New in Ubuntu...Need Cron Job help

    I'm going to +1 the Digital Ocean stuff. Very easy to understand and most of them give you some information as to why you are doing what you are doing.

    Bear in mind that their tutorials are usually good to get you up and running with basic settings. From there, you should go to the other resources. The beauty of using Digital Ocean's tutorials first is that when you get to the more advanced tutorials, you sort of have an idea what is going on.
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •