LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices


Reply
  Search this Thread
Old 12-16-2014, 01:35 AM   #1
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Rep: Reputation: 169Reputation: 169
AT not working


I can not get "at" to work.

Geany never opened. ??

Code:
# at 1:31 am
warning: commands will be executed using /bin/sh
at> geany
at> <EOT>
job 4 at Tue Dec 16 01:31:00 2014
 
Old 12-16-2014, 06:05 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,685

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
at

User Error. You are attempting to open a user interface in an environment with no tty or xWindows access.
You may have misunderstood what at is for.
Think a detached, background batch shell environment that is NOT interactive and has not terminal connected.
 
Old 12-16-2014, 11:55 AM   #3
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
I don't understand what you are saying.

According to this site, at should be working.

http://www.brunolinux.com/02-The_Ter...t_Command.html
 
Old 12-16-2014, 12:45 PM   #4
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
Hi Fixit7,

Generally speaking, at runs programs in the background that do not require Human interaction.

By default there is no display. So if you are trying to run something that requires a display, you might well have problems.
 
Old 12-16-2014, 01:00 PM   #5
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
O.K., but this example does not work.

Maybe the author is mistaken or they have changed at ?
Quote:
$ at 12:49 -m
warning: commands will be executed using (in order) a) $SHELL b) login shell c) /bin/sh
at> play /usr/share/sounds/KDE_Startup.wav
at> <EOT>
job 7 at 2006-05-01 12:49
 
Old 12-16-2014, 05:03 PM   #6
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
This is the output I get when I try to run the play command directly.
Code:
play FAIL formats: can't open input file `/usr/share/sounds/KDE_Startup.wav': No such file or directory
So when you say the command does not work, exactly what happens when the at job runs?
 
Old 12-16-2014, 05:10 PM   #7
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
Maybe this will illustrate the situation:

Code:
$ tty
/dev/pts/5
$ date
Tue Dec 16 17:06:29 CST 2014
$ at 17:07
warning: commands will be executed using /bin/sh
at> echo 'Hello from an at job'  >> /dev/pts/5
at> <EOT>
job 6 at Wed Dec 17 17:07:00 2014
$ Hello from an at job
 
Old 12-16-2014, 05:49 PM   #8
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Quote:
Originally Posted by rigor View Post
This is the output I get when I try to run the play command directly.
Code:
play FAIL formats: can't open input file `/usr/share/sounds/KDE_Startup.wav': No such file or directory
So when you say the command does not work, exactly what happens when the at job runs?
You probably do not have that wav file.

Try one you know you have.
 
Old 12-16-2014, 05:52 PM   #9
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
# at 17:53
warning: commands will be executed using /bin/sh
at> echo 'Hello' >> /dev/pts/0
at> <EOT>
at> <EOT>
job 9 at Tue Dec 16 17:53:00 2014
Can't open /var/run/atd.pid to signal atd. No atd running?
 
Old 12-16-2014, 09:23 PM   #10
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
well it depends which OS you use and what works on that to play audio files:

Code:
# at 08:47 am today
at> aplay /usr/share/sounds/alsa/Rear_Right.wav >/dev/pts/1
at> <EOT>
job 11 at 2014-12-17 08:47
worked perfectly fine for me. see the highlighted


Below many known commands wont work, so OS to OS matters what's available:

Code:
# aplay /usr/share/sounds/alsa/Rear_Right.wav
Playing WAVE '/usr/share/sounds/alsa/Rear_Right.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono

# play /usr/share/sounds/alsa/Rear_Right.wav
-bash: play: command not found

# audioplay /usr/share/sounds/alsa/Rear_Right.wav
-bash: audioplay: command not found

Last edited by SAbhi; 12-16-2014 at 09:24 PM. Reason: editing misspelled and remains is my habit now :(
 
1 members found this post helpful.
Old 12-16-2014, 11:21 PM   #11
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
Quote:
Originally Posted by Fixit7 View Post
You probably do not have that wav file.

Try one you know you have.
Of course I don't have the file. But since you were just indicating that at didn't work, but not saying what the failure was, it was hard for other people to understand what issue you were having.
 
Old 12-16-2014, 11:23 PM   #12
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
Quote:
Originally Posted by Fixit7 View Post
# at 17:53
warning: commands will be executed using /bin/sh
at> echo 'Hello' >> /dev/pts/0
at> <EOT>
at> <EOT>
job 9 at Tue Dec 16 17:53:00 2014
Can't open /var/run/atd.pid to signal atd. No atd running?
That can happen when the at daemon atd is not running.
Do you have atd running?
 
Old 12-16-2014, 11:36 PM   #13
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
From what I understand, atd should run each time my system is started.

I have at-3.1 installed.
 
Old 12-16-2014, 11:42 PM   #14
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
Fixit7,

If you look at the first aplay SAbhi you'll see that it was connected to a terminal by using the sequence:

Code:
>/dev/pts/1
which is what I did with the echo command I showed in a previous post.

at generally runs things in the background without a controlling terminal. So if something you want at to run needs a terminal for output, you'll generally want to connect it to one.

Also, naturally you need the at Daemon atd running.

HTH!
 
Old 12-16-2014, 11:50 PM   #15
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Thanks rigor.

So, how do I get atd to run ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Wifi not working in Eee PPC 1000HE (Debian Squeeze), but ethernet is working someshpr Linux - Laptop and Netbook 8 10-10-2011 03:59 PM
media problem with .avi --- audio only in vlc working rest amarock ,etc. not working fedex Linux - Newbie 1 12-22-2007 08:06 AM
SED - minor changes work - Larger doesn't (working and non working code included) Nimoy Programming 17 09-22-2007 04:34 PM
Fortemedia FM801 card not working under FC5 on Intel 845 but working with windows morningkiran Linux - Hardware 0 11-30-2006 07:57 AM
acpi nearly working IBM thinkpad R40e 2684HVG no Fn key working, throttling OK Emmanuel_uk Linux - Laptop and Netbook 2 05-31-2006 01:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy

All times are GMT -5. The time now is 01:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration