I want to output two commands to a file. I want the exact time (date) AND temperature (sensors) to go to file every 5 minutes. I know how to output one command to a file, but two? How to write such script?
Bash – How to Output Two Commands to File
bashscripting
Related Topic
- Bash – Create ‘Virtual File’ from Command Output
- Difference Between Double and Single Square Brackets in Bash – Scripting Shell POSIX
- Linux Bash – How to Sort du -h Output by Size
- Linux – How to fully log all bash scripts actions
- Linux – How to run two different long running commands at the same time in a bash script
- Bash – Run an interactive bash subshell with initial commands without returning to the (“super”) shell immediately
Best Answer
Something like this? (In a loop, cron, or whatever you're currently using.)