0

I have certain jobs to be run in a specific time .

for example :

at 00:20:00 ls

at 04:20:00 ls -l

at 08:20:00 ls -ltr

at 12:20:00 ls -ltrh

How can run this at these specific time based on some conditions . Like if it is 00:20:00 , it should only run ls , it should not run the other three .

Can anyone help ?

Fabián Montero
  • 1,613
  • 1
  • 16
  • 34
Kaverappa KU
  • 87
  • 1
  • 7

1 Answers1

0

You can use the keyowrd at

For example: echo "ls -ltr" | at 12:20

Check out this answer. :)

Fabián Montero
  • 1,613
  • 1
  • 16
  • 34