kyle_is_kool
kyle_is_kool

Reputation: 11

Why isn't the "at" command sending data to the designated output file?

I am trying to use the "at" command to run a lengthy code (code.x) that will take values from an input deck (input_deck.in) and output the results to results.out. I have a text file labeled job.txt with the desired command. The contents of job.txt are as follows.

    ./code.x<input_deck.in>results.out

In the terminal I have

    at -M -f job.txt now

The results.out file gets created but no output is sent to it. I am trying to understand the reason why, and how to make it so that the output gets sent to that file.

Thank you,

Kyle

Upvotes: 0

Views: 42

Answers (1)

clpgr
clpgr

Reputation: 129

Maybe your code.x does not have execute permission.

Add 2>error.log to the end of command, run at and then check error.log to see what is really going on.

# job.txt
./code.x < input_deck.in > results.out 2> error.log

# terminal
at -M -f job.txt now
cat error.log

You can remove 2>error.log after the problem being solved.

Upvotes: 0

Related Questions