LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-19-2016, 11:35 AM   #1
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Rep: Reputation: Disabled
at command


at command did not work for me.....

Code:
user1@localhost log]$ date
Tue Jul 19 01:29:32 MDT 2016
[user1@localhost log]$ at 01:32
at> logger msg from at
at> <EOT>
job 3 at Tue Jul 19 01:32:00 2016
[user1@localhost log]$ atq
2	Tue Jul 19 10:10:00 2016 a user1
3	Tue Jul 19 01:32:00 2016 a user1
[user1@localhost log]$ atrm 2
[user1@localhost log]$ atq
3	Tue Jul 19 01:32:00 2016 a user1
[user1@localhost log]$ date
Tue Jul 19 01:30:56 MDT 2016
[user1@localhost log]$ sudo cat messages | grep logger
[sudo] password for user1: 
[user1@localhost log]$ date
Tue Jul 19 01:32:08 MDT 2016
[user1@localhost log]$ sudo cat messages | grep logger
# No logger message here...WHY?
# /var/log/messages showing transition from 1:31 to 1:32
Quote:
[user1@localhost log]$ pwd
/var/log
[user1@localhost log]$ ls -al | grep messages
-rw-------. 1 root root 162250 Jul 19 01:40 messages
-rw-------. 1 root root 3292292 Jul 18 21:28 messages-20160718



[user1@localhost log]$ sudo cat messages | tail -n 6
Jul 19 01:31:51 localhost fprintd: ** Message: No devices in use, exit
Jul 19 01:32:01 localhost systemd: Started Session 14 of user user1.
Jul 19 01:32:01 localhost systemd-logind: New session 14 of user user1.
Jul 19 01:32:01 localhost systemd: Starting Session 14 of user user1.
Jul 19 01:32:01 localhost user1: msg from at
Jul 19 01:32:01 localhost systemd-logind: Removed session 14.
What did I missed?

OOPs.. it worked!
I missed it!
Here:
Quote:

Jul 19 01:32:01
localhost user1: msg from at

Last edited by fanoflq; 07-19-2016 at 11:39 AM.
 
Old 07-20-2016, 06:45 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Spurious comment to take thread off "unanswered" list.
 
  


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] [SOLVED] bash script: can echo command, command works if I type, but command doesn't work in script ... why? hopeless_n00b Linux - Newbie 10 07-12-2018 05:57 AM
Does bash script has equivalent set /p command as Windows shell command? ncheng Linux - Newbie 5 06-30-2016 05:29 AM
Command/Script required to send an email alert in case command will not respond rajaniyer123 Linux - General 1 05-19-2012 01:12 PM
Executing shell command from JSP file with command line arg from URL orcusomega Programming 2 01-13-2012 03:38 PM
Bash Command Line Editor, while typing run another command before executing current? gumaheru Linux - General 5 04-13-2010 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:55 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