From: Fernan A. <fe...@ii...> - 2006-05-16 21:31:44
|
+----[ Kumar, Sanjeev <San...@ng...> (16.May.2006 17:51): | | Hi Group, | I am having a problem in trapping the errors generated by | InsertSequenceFeatures in a file. | When I am using " ga GUS::....> errorfile", it captures all other | outputs except Error string / error | description. So, it is not helpful. | Also, I tried to use parameter "--failDir", it didn't do any thing. | I am sure there must be a way, pl. guide me in finding. | +----] Kumar, by doing 'ga ... > file' you're only redirecting stdout. If you want to redirect stderr you should do something like 'ga ... >& file.err' If you want to redirect both, it will depend on the shell you're using. For csh the following works for me: ( ga ... > file.stdout ) >& file.stderr For bash, I'm sure Google will tell you :) The other alternative is to use script(1) first and then run all your commands within a script session. When you exit script (ctrl-d or just 'exit') everything (including all output printed to stdout and stderr) will be in the file you specified or in a file named 'typescript' in the current directory. Hope this helps, fernan |