In a cron script I want to log CPU temperatures in the format
acpi -t. How can I redirect (
>>) these two commands to a single line in the log file?
Try simply doing:
You might want to specify a compact date format to make your log file more easy to parse and to be independent of environment/locale settings (something like
well perhaps on older systems (solaris8 f.e. ^^) without bash: