BATCH AT COMMAND


Command Example

Description

at now + 10 minutes

Associated jobs will start in 10 minutes.

at now + 2 hours

Associated jobs will start in 2 hours.

at now + 1 day

Associated jobs will start in 1 day (24 hours).

at now + 1 week

Associated jobs will start in 7 days.

at teatime

Associated jobs will start at 4:00 P.M.

at 3:00 6/13/07

Associated jobs will start on June 13, 2007, at 3:00 A.M.

$ at 10 am tomorrow

$ at 11:00 next month

$ at 22:00 today

$ at now + 1 week

$ at noon

The Linux at command permission files (/etc/at.allow and /etc/at.deny)

Contoh:

[root@ecentos621 bin]# at -f /home/ecentrix/bin/test01.sh now + 1 minutes
job 8 at 2012-09-10 17:45

View

[root@ecentos621 bin]# atq
8 2012-09-10 17:45 a root

Remove

[root@ecentos621 bin]# atrm 8

Contoh 2

[root@ecentos621 bin]# atq
[root@ecentos621 bin]# at now + 1 minutes
at> /home/ecentrix/bin/test01.sh
at> <EOT>  ====================================> CTRL + d
job 9 at 2012-09-10 17:46

View

[root@ecentos621 bin]# atq
9 2012-09-10 17:46 a root

CHECK SERVICE ATD

STATUS=$(/etc/init.d/atd status | grep “running” | wc -l)

if [ “${CL}” -eq “0” ]; then

/etc/init.d/atd start

fi

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

shisdew

Listens until think alike

moses.spaceku@yahoo.com / voip ipbx

Hosted PBX, IP-PBX SOHO/ CALL CENTER, VOICE GATEWAY, VOICE CARD, COST EFECTIVE SOLUTIONS (LCR), GSM/CDMA GATEWAY

%d bloggers like this: