-s, --silent
Print nothing, only return an exit status.
An option of ttyx.
Usage
ttyx -s
ttyx --silentDetails
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-s | --silent | none | print nothing, only return an exit status |
Examples
Refuse to ask for a password in a cron job or CI run
ttyx -s || { echox 'no terminal: set DB_PASSWORD instead' >&2; exit 1; }Show progress only when a person is watching
ttyx -s && echox 'Copying 4.2 GB, this takes a few minutes...'Get the exit status alone, for a test in a script
ttyx -s; echox $?0Help in the terminal
gnux help ttyx --silent