« Reply #1 on: July 04, 2008, 19:36:12 »
Доброе время суток!!!!!
Есть вопрос: как записать вывод программы в файл? Иначе говоря, есть скрипт и его вывод надо запротоколировать в файл.
program.sh > ofile
program.sh >> ofile
program.sh 2> errorfile
program.sh 2>> errorfile
program.sh 2>&1 errorfile-and-ofile
Ищите по запросу Input/Output Redirection in Unix
« Last Edit: July 04, 2008, 19:43:55 by anovo »

Logged
The White Rabbit put on his spectacles. "Where shall I begin, please your Majesty?" he asked.
"Begin at the beginning," the King said, very gravely, "and go on till you come to the end: then stop."
"Alice's Adventures in Wonderland" by Lewis Carroll