Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Linux at command     - Installation of Theano + CUDA under Ubuntu (Linux)

- Development environment to build MEAN In Ubuntu 15.10 (Server)

- Nmcli based network management command-line tool (Linux)

- Simple Calendar C language (Programming)

- Applications Linux leap second problem caused (Linux)

- How do you access Dropbox Linux command line (Linux)

- Fragment Android developers learning to resolve (Programming)

- Java is simple to read and write HDFS Demo (Programming)

- The YUM package management under Linux (Linux)

- Xmanager Remote Desktop login CentOS 6.5 (Linux)

- CentOS 6 compiling httpd-2.4.10 (Server)

- SELinux multi-level security (Linux)

- apt-get install openstack pkg Troubleshooting (Linux)

- Linux System Getting Started Learning: Change the name of the network interface on CentOS7 (Linux)

- MySQL Study of --Percona Server 5.5 Upgrade 5.6 (Database)

- Linux system security knowledge (Linux)

- Use Swift remove the spaces in the string (Programming)

- AngularJS asynchronous service testing and Mocking (Programming)

- Linux firewall anti-hacker disguise malicious attacks (Linux)

- Java String type time compare the size (Programming)

  Linux at command
  Add Date : 2018-11-21      
  At command is used to execute commands at a specified time.

at a fairly complex method allows the use of a specified time. It can be accepted on the day of hh: mm (hours: minutes) formula specified time.

If the time has passed, then on the next execution. Of course, it is possible to use the midnight (midnight), noon (noon), teatime (tea time, usually 16:00) and other more obscure words to the specified time.

Users can also 12-hour clock, that is behind time plus AM (morning) or PM (afternoon) will be explained in the morning or afternoon. You can also specify the exact date command execution, specify the format for the month day (May day) or mm / dd / yy (month / day / year) or dd.mm.yy (day. Month, year). The specified date must follow the specified time in the back.

Described above are absolute timing method, in fact, also be able to use the relative timing method, which will soon be scheduled command execution is very good.

Specified as: now + count time-units, now is the current time, time-units is a unit of time, there can be minutes (min), hours (h), days (days), weeks (weeks). count the number of times, whether it is a few days or a few hours, and so on. More of a timing method is the direct use today (today), tomorrow (tomorrow) to specify the time to complete the command.


-f: Specifies the task file contains specific instructions;
-q: Specifies the name of the new task queue;
-l: Displays a list of tasks to be performed;
-d: delete the specified task to be executed;
-m: Send E-mail task execution to the user upon completion.



Date Time: Specify task execution date and time.


17:00 After three days of execution / bin / ls:

[Root @ localhost ~] # at 5 pm+3 days
at> / bin / ls at> job 7 at 2016-01-08 17:00

 17 o'clock tomorrow, output within the specified time to file:

[Root @ localhost ~] # at 17:20 tomorrow
at> date> /root/2016.log
at> job 8
at 2016-01-09 17:20

After the scheduled task set before us is not performed can atq command to view the system does not perform tasks:

[Root @ localhost ~] # atq
8 2016-01-06 17:20 a root
7 2016-01-08 17:00 a root

Delete a task that has been set:

[Root @ localhost ~] # atq
8 2016-01-06 17:20 a root
7 2016-01-08 17:00 a root
[Root @ localhost ~] # atrm 7
[Root @ localhost ~] # atq
8 2016-01-06 17:20 a root

Display the contents of the task has been set:

[Root @ localhost ~] # at -c 8
#! / Bin / sh
# Atrun uid = 0 gid = 0
# Mail root 0 umask 22 is omitted here n characters
date> /root/2016.log
- Linux environment has been running Tomcat how to deploy the new Tomcat (Server)
- Linux shell in back quotes (`) Application (Linux)
- Commentary Apache + Tomcat + JK implement Tomcat clustering and load (Server)
- Servlet life cycle code examples (Programming)
- C ++ copy constructor (Programming)
- MariaDB 10 Multi-source replication (Database)
- Security implementation of disk data protection under Linux (Linux)
- I like Linux Security (Linux)
- Github Remote Assistance (Linux)
- Installing software on Ubuntu: apt-get and dpkg difference (Linux)
- ElasticSearch - Basic Concepts (Server)
- MySQL 5.7 can not log in problem (Database)
- How to add any of a Linux distribution beautiful fonts (Linux)
- Ubuntu 14.04 Install WordPress on Nginx (Server)
- User rights management system under Linux (Linux)
- Linux Shell debugging (Programming)
- Loop arrays in C language is not easy to find a bug (Programming)
- Online booking shocking information leakage risk, you dare book the tickets online? (Linux)
- Linux System Getting Started Tutorial: How to automatically set the JAVA_HOME environment variable on Linux (Linux)
- Use cmake to compile and install MySQL 5.5 (Database)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.