Search
SailfishOS Open Build Service
>
Projects
>
sailfishos
:
chum
>
uptimed
> _service:tar_git:uprecords2html
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:uprecords2html of Package uptimed
#!/usr/bin/env bash statefile=$(mktemp -p "${HOME}/Downloads/" -t uprecords-out-XXXXXX).html echo '<html><head><title>uprecords</title></head> <body bgcolor="#a5d684" text="#366519" style="min-width: fit-content; width:100%;"> <p style="align: center;"><pre style="font-size: x-large;">' > ${statefile} /usr/bin/uprecords -Madw | sed 's/^/ /' >> ${statefile} echo '</pre></p></body></html>' >> ${statefile} xdg-open ${statefile} # xdg-open does not wait, and the browser takes some time to load, so sleep sleep 5 # clean up rm ${statefile}