apt-file output redirection to file
Hi,
I have in bash script command apt-file update >file.output or apt-file update |tee $0.log but output file is empty, Is there any way how to make it work ? thank you for help kind regards, Martin |
You do get a log file in /var/log/apt which contains the output you're attempting to capture.
Or you could do sudo apt-get update >$0.log 2>&1 redirects stderr to stdout. Have a look at bash file descriptor redirection. |
Quote:
I really need apt-file redirection to file in a script. ON command line it works properly but I need it in script but not like you posted it |
All times are GMT -5. The time now is 09:24 PM. |