apt-file output redirection to file
I have in bash script command
apt-file update >file.output
apt-file update |tee $0.log
but output file is empty,
Is there any way how to make it work ?
thank you for help
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.
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 10:44 PM.|