Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Runs Spotify, and after that blockify.
- # Redirects standard and error outputs to log file for both
- # November 2, 2021
- #
- # blockify:
- # https://github.com/serialoverflow/blockify
- #
- BLOCKIFYDIR=~/.config/blockify/addlogs
- BLOCKIFYLOG=$BLOCKIFYDIR/blockify.log
- SPOTIFYLOG=$BLOCKIFYDIR/spotify.log
- DATE=$(date)
- HEADER="\\n==============================\\n$DATE"
- mkdir -p $BLOCKIFYDIR
- echo Run Spotify
- echo "$HEADER" >> "$SPOTIFYLOG"
- spotify >> "$SPOTIFYLOG" 2>&1 &
- sleep 10
- echo Run blockify
- echo "$HEADER" >> "$BLOCKIFYLOG"
- blockify >> "$BLOCKIFYLOG" 2>&1 &
Add Comment
Please, Sign In to add comment