Welcome to the Linux Foundation Forum!

at command giving me garbled time

im using

DISTRIB_ID=Ubuntu

DISTRIB_RELEASE=9.10

DISTRIB_CODENAME=karmic

DISTRIB_DESCRIPTION="Ubuntu 9.10"

ubuntu$ at

Garbled time

ubuntu$

how do i reset the at command so i can use it again it is stuck at garbled time.

Comments

  • is their a way to use
    zenity --info --text="test" instead of notify-send 'yay'

    in the command

    at 18:17
    warning: commands will be executed using /bin/sh
    at> notify-send 'yay'
  • i was told that to get zenity to work i had to Throw it into a script file and run it as:
    at -f /path/to/script.sh 18:17

    what would the script look like? the best i can do is

    #!/usr/bin/bash
    echo 'notify-send'
    date
    read date
    at $date

    their has to be an easyer way to write the script
  • mfillpot
    mfillpot Posts: 2,177
    If the command "zenity --info --text="test" instead of notify-send 'yay'" is what you are trying to launch using at then you would want to create a bash script file (lets name it script.sh) with the following contents:
    #!/bin/bash
    zenity --info --text="test" instead of notify-send 'yay' #put your shell commands here
    

    Then you would set it to run using at by using the syntax you used above "at -f /path/to/script.sh 18:17". Also don't forget to make the script executable to the user account that is calling it through the at command.

Categories

Upcoming Training