0

Please help me solve my issue on at command.

I am giving the below command and it is not executing.

# at now
at> ls -l > txt.txt
at> <EOT>
job 1 at 2016-04-27 11:31

when I try to read txt.txt, there is no such file.

1
  • Welcome to SuperUser. Please format your question such that we can understand where > identifies your command prompt and where it represents output redirection. You'll make the life of your voluntary supporters much easier.
    – Run CMD
    Apr 27, 2016 at 6:26

1 Answer 1

0

When using a scheduler, it is always a good idea to specify the full paths.

I suspect you're simply looking for the output in the wrong place or that you may not have write access to the output directory.

If you try the exact same command from outside at, does it work? If not, please provide the permissions from the directory in question.

1
  • I presume your suspicion is inaccurate. If you take the time to consider man at, you'll find that e.g. the working directory and environment are preserved.
    – Run CMD
    Apr 27, 2016 at 7:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .