Net::Op...STracer(3)
πΈ NAME πΈ
okay so welcome to Net::Op...STracer(3), bestie β this is from the User Contributed Perl Documentation, and it's the manual page for Net::OpenSSH::OSTracer: trace the master ssh process at the OS level. Like, literally at the operating-system layer. π
β¨ SYNOPSIS β¨
vibe check: here's the synopsis, bestie:
use Net::OpenSSH;
$Net::OpenSSH::debug |= 512;
Net::OpenSSH->new($host)->system("echo hello world");
system "less /tmp/net_openssh_master.*.strace";
π DESCRIPTION π
This is a helper module for Net::OpenSSH that lets you trace the master ssh process at the operating system level, using the proper utility that's actually available on your system (for example strace, truss, ktruss, tusc, etc.). iconic. π¦
Use it when you're debugging your programs or when you want to report bugs on the module. πβ¨ main character debugging energy.
It's enabled by setting flag 512 on the $Net::OpenSSH::debug variable:
$Net::OpenSSH::debug |= 512;
By default, the tracer's output files are saved as /tmp/net_openssh_master.$pid.$tracer_type.
Also, the output that the tracer sends to stdout/stderr is saved as /tmp/net_openssh_master.$pid.txt.
π The global variables (config girlies, iykyk) π
The module can be configured through the following global variables:
$Net::OpenSSH::OSTracer::typeβ By default, the module decides which tracer to use based on the operating system name. This variable lets you select a different tracer. Currently accepted types are:strace(Linux),ktrace(*BSD),tusc(HP-UX) andtruss(Solaris and AIX). periodt.$Net::OpenSSH::OSTracer::cmdβ Command to execute for tracing thesshprocess. By default, it infers it from the selected tracer type.$Net::OpenSSH::OSTracer::outputβ Basename for the destination file. The PID of thesshprocess and the tracer type will be appended.$Net::OpenSSH::OSTracer::sudoβ This variable can be used to request the tracer to be run withsudo(some operating systems, for example Ubuntu, do not allow one to attach tracers, even to your own processes, unless you do it as root). The variable has to be set with the path of thesudobinary. For instance:$Net::OpenSSH::OSTracer::sudo = '/usr/bin/sudo';
If you need to pass a password to sudo, set the environment variable SUDO_ASKPASS. For instance: SUDO_ASKPASS=/usr/bin/ssh-askpass
$Net::OpenSSH::OSTracer::delayβ This variable can be used to delay thesshexecution so that the tracer can attach the process first. This is especially handy when usingsudowith a password.
π«Ά BUGS π«Ά
highkey, this module has not been tested under all the operating systems it says to support. π ngl, fr fr.
If you find any problem, just report it, please! π
π COPYRIGHT AND LICENSE π
Copyright (C) 2012 by Salvador FandiΓ±o (sfandino@yahoo.com)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
okay that's the whole manual, bestie π source/version: perl v5.40.2, dated 2025-01-03, for Net::Op...STracer(3) β go off πβ¨
π¦ where this page comes from
- alpine 3.22: perl-net-openssh-doc 0.84-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms