Tagged articles
exec
28 articles · Page 1 of 1
This tutorial demonstrates how to harness Python's built‑in functions—print, input, open, eval, and exec—to customize console logs, write test results to files, create interactive scripts, safely evaluate strings, and dynamically load code, while highlighting common pitfalls and security considerations.
EvalPythonTest Automation
0 likes · 15 min read

This article demystifies Linux's fork, exec, and copy‑on‑write mechanisms, explaining their inner workings, performance trade‑offs, and how they cooperate during typical command execution, while providing clear code examples and practical insights for developers and interview preparation.
COWLinuxProcess Management
0 likes · 38 min read

This article provides a comprehensive, step‑by‑step explanation of Linux process management, covering the definition of a process, PCB structure, task organization, state transitions, creation system calls (fork, vfork, clone), execution with exec, scheduling, waiting, termination, and the kernel’s resource allocation strategies.
LinuxProcess Managementexec
0 likes · 43 min read

This tutorial explains core Linux process concepts—including the difference between programs and processes, how to view and identify processes, detailed usage of fork and vfork for creating child processes, process termination, zombie and orphan handling, and practical examples of exec, system, and popen functions with C code.
Linuxc-programmingexec
0 likes · 28 min read

This guide explains Linux processes, the role of the Process Control Block, how processes are created with fork and exec, the differences between foreground, background and daemon processes, and provides practical command‑line tools such as ps, top, htop, pgrep, pkill, kill, killall, pidof, nice and renice for effective process monitoring and control.
LinuxProcess Managementdaemon
0 likes · 25 min read

This article explores how Python's locals() and globals() functions reveal variable scopes, demonstrates why locals() cannot modify local variables, shows how globals() can dynamically alter global state, and combines them with exec() for powerful runtime variable creation and updates.
Pythondebuggingdynamic-variables
0 likes · 6 min read

Redis is ubiquitous in Java development for caching, ranking, and distributed locks, but its transaction model differs from traditional databases; this article explains Redis transaction fundamentals, core commands (MULTI, EXEC, DISCARD, WATCH), common pitfalls, best practices, and interview FAQs to help developers avoid mistakes.
MULTITransactionsexec
0 likes · 11 min read

This article explains how Linux processes are created, managed, and replaced using the fork, wait (including waitpid), and exec system calls, covering their prototypes, return values, copy‑on‑write optimization, and practical C code examples that demonstrate their coordinated use in real‑world scenarios.
Linuxc-programmingexec
0 likes · 25 min read

Redis, a non‑relational database, implements transaction-like behavior using commands such as MULTI, EXEC, DISCARD, and WATCH, allowing queued execution, optimistic locking, and various rollback granularities, though its semantics differ from traditional relational database transactions.
MULTINoSQLTransactions
0 likes · 5 min read

This article explains Python's built‑in exec() function, covering its syntax, parameter options, practical code examples, security considerations, performance impacts, and recommended best‑practice guidelines for safely using dynamic code execution.
Pythondynamic executionexec
0 likes · 5 min read

The article explains that CPython stores function local variables in a statically‑indexed array (f_localsplus), accesses them via GETLOCAL/SETLOCAL macros, and builds the locals() dictionary on demand, showing how exec, variable assignment order, and the hidden local namespace interact with this mechanism.
CPythonPythonbytecode
0 likes · 27 min read

This article explains how the kubectl command interacts with the Kubernetes control plane, detailing one‑way HTTPS requests and two‑way WebSocket communications, and walks through the full execution flow of a kubectl exec command across kube‑api‑server, kubelet, and the CRI runtime.
CRIKubernetesWebSocket
0 likes · 6 min read

This article walks through a Go example that uses the os, os/exec, and syscall packages to locate the ls binary, set arguments and environment, and then replace the current process with ls via syscall.Exec, explaining each step and its practical implications.
BackendSystem Programmingexec
0 likes · 5 min read

This tutorial walks you through Linux process creation with fork, explains copy‑on‑write mechanics, details process termination, waiting, and program replacement using exec families, and culminates in building a basic shell, complete with code examples and visual illustrations.
Linuxc-programmingexec
0 likes · 42 min read

This article explains the purpose of the Bash built‑in exec command, demonstrates its effect on process trees through step‑by‑step experiments, and highlights important cautions when using exec in shell scripts.
Process Managementbashexec
0 likes · 4 min read

This article explains Python's dynamic code execution and code generation techniques, covering the exec function, code templates, and six practical examples such as dynamic module import, class loading, function invocation, class definition, function creation, and runtime modification of classes or functions.
Pythoncode generationdynamic execution
0 likes · 5 min read

This article demonstrates how to use PHP's execution functions—exec, system, passthru, popen, proc_open, and shell_exec—to run shell commands, capture output, and handle process streams, providing example code snippets for each function in PHP scripts.
BackendCommand ExecutionSystem
0 likes · 3 min read

This comprehensive guide walks through Linux process creation with fork, explains its return values and copy‑on‑write behavior, covers normal and abnormal termination using return, exit and _exit, details waiting with wait/waitpid, and demonstrates program replacement via exec functions and a simple custom shell.
Linuxc-programmingexec
0 likes · 25 min read

This tutorial explains Linux process concepts, how to view and identify processes, the differences between programs and processes, and provides detailed examples of using fork, vfork, wait, exec family functions, system, and popen to create, control, and monitor child processes, including handling zombies and orphans.
System Programmingexecfork
0 likes · 29 min read

This article explains the purpose, usage, parameters, return values, and differences of Python's eval, exec, compile, globals, and locals functions, providing detailed code examples and output analysis to help readers grasp how these built‑ins work in various execution contexts.
Evalcompileexec
0 likes · 13 min read

This article explains the Linux exec command, its syntax and options, provides practical examples, and expands on how exec replaces a process without creating a new PID, offering deeper insight into process management and system calls.
Linuxexecprocess
0 likes · 4 min read

This article explains process and thread fundamentals, describes Node.js's single‑threaded nature, and provides detailed guidance on using the child_process module (spawn, fork, exec, execFile) and the cluster module to create, manage, and communicate between multiple Node.js processes for scalable, high‑concurrency applications.
BackendClusterNode.js
0 likes · 11 min read

This guide explains how to configure ClamAV on Linux, run the clamdscan command to detect malicious files, and invoke the scanner from PHP using the exec function, including sample configuration and output details.
ClamAVLinuxPHP
0 likes · 2 min read

This guide shows how to combine the Linux find command with the -exec (or -ok) option to locate files by pattern and then automatically list details, delete, move, or search within them, providing practical examples and safe‑mode usage for robust batch operations.
command-lineexecfile-management
0 likes · 6 min read

Node.js’s child_process core module enables creation of child processes to leverage multi‑core CPUs and inter‑process communication, while also allowing execution of external files or system commands; this article explores the differences and inner workings of its exec and spawn methods.
Node.jsProcess ManagementSpawn
0 likes · 1 min read

This article explains the fundamental differences between JavaScript's exec and match methods, showing which belongs to RegExp or String, how the global "g" flag affects their behavior, and provides practical code examples to help you choose the right one.
Stringexecmatch
0 likes · 3 min read

This article explains the differences between exec, source, and fork in Bash, covering process creation, environment variable inheritance, command groups, variable substitution, positional parameters, logical operators, and provides example scripts to illustrate each concept for effective shell scripting.
_sourcecommand substitutionenvironment variables
0 likes · 26 min read

This article explains the differences between code, programs, and processes in Linux, demonstrates how to compile and run a simple program, explores parent‑child relationships, the role of the init process, the process lifecycle, and the copy‑on‑write mechanism.
Linuxcopy-on-writeexec
0 likes · 10 min read
