"At" loops job with sh command file
Try this. Create a file, test.sh, with this: - - - - #!/bin/bash gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pswrite -sOutputFile=/tmp/test.ps -c save pop -f test.pdf - - - - (the gs command is on one line) on the command line type
at now (at will prompt for the command to be run. Type:) test.sh Ctrl-D
If it behaves as my atd scheduler does, it will start a sh process that will loop gs infinitely. I've tried on both 7.3 and 8.0. Is this the expected behavior of at? How can I run a shell script with gs, pdf2ps or whatever I want to put inside my script???
* Kaare Rasmussen (kar@kakidata.dk) [020612 12:44]:
If it behaves as my atd scheduler does, it will start a sh process that will loop gs infinitely. I've tried on both 7.3 and 8.0.
It does...let me think about this.
Is this the expected behavior of at? How can I run a shell script with gs, pdf2ps or whatever I want to put inside my script???
I'm not sure I understand. The same way you did in test.sh. -- -ckm
participants (2)
-
Christopher Mahmood
-
Kaare Rasmussen