APTITUDE-ROBOT-SESSION(8)
π aptitude-robot-session(8) π
okay bestie, so this is a User Commands page from section 8 of the manual, and it's all about aptitude-robot-session β the little helper script that runs your robot bestie without anybody needing to babysit it. no cap, it's giving "set it and forget it" energy. π¦
β¨ NAME β¨
aptitude-robot-session β call aptitude-robot non-interactively π
πΈ SYNOPSIS πΈ
aptitude-robot-session
that's it. that's the whole vibe. no flags, no arguments, just send it. π
π DESCRIPTION π
aptitude-robot-session is a helper script, and its whole personality is "meant to be run from cron or init scripts." literally, that's the assignment. π«Ά
when it runs, it calls aptitude-robot with some options that are suitable for non-interactive use β because nobody's there to answer questions, bestie, and the robot knows that.
it also redirects all output (STDERR and STDOUT, both of them, the whole package π) to LOGFILE, which is defined in /etc/default/aptitude-robot.
π CONFIGURATION π
there are a few configuration options you can define in /etc/default/aptitude-robot. here's the lineup:
LOGFILEβ the name of the file where all the output ofaptitude-robotgets collected. defaults to/var/log/aptitude-robot.logβ¨LOG_SESSIONβ the name of the file where the session log is accumulated.aptitude-robot-sessionwill append its PID to this file so it does not overwrite a log file left over from a crashed earlier invocation. ifaptitude-robot-sessionfinishes properly, it will append the session log toLOGFILEand delete the session log. clean up, clean up π§SESSION_REPORT_COMMANDβ an optional command, invoked with the session log as the only argument at the end of anaptitude-robot-sessionrun. use it to file reports to monitoring systems or support mail addresses. very main character of you πMAX_LOGFILES_SIZE_BLOCKSβ file size limit in blocks for the session log. this prevents endless loops if a package installation keeps asking the same question for which no terminal is available to provide an answer. π
but be aware that this limit also affects _all_ daemons started or restarted during the aptitude-robot-session run, including e.g. the OpenSSH daemon β which again will propagate the limit to its remote login sessions. use with care. π
POST_SESSION_HOOKβ a command that is run at the end of a successfulaptitude-robot-session. e.g., use it forapt-get clean. little treat at the end π
β EXIT STATUS β
aptitude-robot-sessionexits with0on success π1ifdpkgis locked π2if apt failed to fetch some APT repositories π
π BUGS π
the non-interactive nature of aptitude-robot-session may trigger the condition reported in https://bugs.launchpad.net/ubuntu/+source/aptitude/+bug/257279
yeah. it's a known thing. go read the bug, iykyk π
π SEE ALSO π
aptitude-robot(8), aptitude(8)
go read those too, they're iconic π
π AUTHORS π
Elmar S. Heeb <elmar@heebs.ch> and Axel Beckert <abe@debian.org>
that's the whole page bestie!! π this was version 1.5.5, dated 2023-03-01, and you just read APTITUDE-ROBOT-SESSION(8) β slay, you're officially caught up. periodt. β¨ππ¦
π¦ where this page comes from
- debian bookworm: aptitude-robot 1.5.5-1 Β· GPL-3.0-or-later
- ubuntu noble: aptitude-robot 1.5.5-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms