سؤال

I am installing an application on Mac using silent installation. The problem here is I want to read/get the status of application installaton, I mean whether it is installed succesfully or not. Tried with redirecting console output to some text file but its not working.

I tried like,

./installer -s -v > logfile

it is showing output on console but not redirecting to the logfile.

هل كانت مفيدة؟

المحلول

You need to redirect stderr to stdout:

./installer -s -v 2>&1 logfile

نصائح أخرى

Try ./installer -s -v &> logfile or ./installer -s -v 2> logfile

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top