Linux.com

Home Linux Community Forums Software Command Line at command giving me garbled time

at command giving me garbled time

Link to this post 24 Dec 09

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.

Link to this post 24 Dec 09

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'

Link to this post 24 Dec 09

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

Link to this post 25 Dec 09

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.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board