Hi all
When I run this code the shell script does not work.
The output of date command is:
The script is:
The user that I run the at is test. I give the permission in sudoers file to the user test.
When I run the command it has no error. At the given time I execute atq and the job disappear correctly.
What is wrong?
Thanks
When I run this code the shell script does not work.
sudo at -t 200201010102 -f /test.sh
The output of date command is:
Code:
Tue Jan 1 01:00:01 IRST 2002
The script is:
Code:
#!/bin/sh
shutdown -r now
The user that I run the at is test. I give the permission in sudoers file to the user test.
When I run the command it has no error. At the given time I execute atq and the job disappear correctly.
What is wrong?
Thanks