PuppyThis forum is for the discussion of Puppy Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
$ 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
# 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?
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 :(
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.
# 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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.