Klimi's new dotfiles with stow.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

76 řádky
2.2 KiB

před 5 roky
  1. #!/bin/sh
  2. ### (C) 1997, Richard M. Heiberger.
  3. ### This file is part of ESS.
  4. ## This file is free software; you can redistribute it and/or modify
  5. ## it under the terms of the GNU General Public License as published by
  6. ## the Free Software Foundation; either version 2, or (at your option)
  7. ## any later version.
  8. ## This file is distributed in the hope that it will be useful,
  9. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. ## GNU General Public License for more details.
  12. ## A copy of the GNU General Public License is available at
  13. ## https://www.r-project.org/Licenses/
  14. # For executing SAS, and running it in the proper manner for ESS
  15. # (feeding output back into appropriate ESS buffers).
  16. #echo $0 $@
  17. #sas </dev/tty 1>$1 2>$2 $3
  18. set -x
  19. stdout=$1
  20. stderr=$2
  21. shift 2
  22. set +x
  23. echo sas \</dev/tty 1\>$stdout 2\>$stderr $@
  24. sas </dev/tty 1>$stdout 2>$stderr $@
  25. ## From the SAS online tech support:
  26. ##
  27. ## Redirecting the SAS Log and Output under UNIX.
  28. ##
  29. ## There are several ways of redirecting the SAS Log and Output under
  30. ## UNIX.
  31. ##
  32. ## To redirect the SAS Log, follow one of these steps:
  33. ##
  34. ## 1.
  35. ## In the source code, place the following line:
  36. ##
  37. ## proc printto log=stdout;
  38. ##
  39. ## to make a duplicate copy of the log in a file in addition
  40. ## to redirecting it to stdout, use this command to invoke
  41. ## SAS:
  42. ##
  43. ## sas -altlog doit.log doit.sas
  44. ##
  45. ## 2.Execute SAS in the background and use the UNIX 'tail' command
  46. ## to copy lines to stdout as they are added to the log. Use the
  47. ## command:
  48. ##
  49. ## sas doit.sas &; tail -f doit.log
  50. ##
  51. ## To redirect the SAS Log and Output under the Korn shell, use the
  52. ## following command:
  53. ##
  54. ## sas -stdio < doit.sas > doit.lst 2> doit.log
  55. ##
  56. ## To redirect the SAS Log and Output under the C-Shell, use the
  57. ## following command:
  58. ##
  59. ## (sas -stdio < doit.sas > doit.lst) >& doit.log
  60. ## From WWW.SAS.COM:
  61. ## How can I make SAS in batch mode behave like interactive SAS,
  62. ## continue running my SAS job, and not enter syntax check mode when
  63. ## it encounters an error?
  64. ##
  65. ## You can specify the NOSYNTAXCHECK option when you invoke your SAS
  66. ## program.