Platforms to show: All Mac Windows Linux Cross-Platform

Back to LinuxProcessMBS class.

LinuxProcessMBS.CommandLine as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Linux MBS Linux Plugin 14.1 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The command line used to create this process.
Example
// show the command line of current process
dim myPID as Integer = LinuxProcessMBS.PID
dim myProcess as LinuxProcessMBS = LinuxProcessMBS.ProcessByPID(myPID)
MsgBox myProcess.CommandLine

(Read only property)

LinuxProcessMBS.CurrentWorkingDirectory as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Linux MBS Linux Plugin 14.1 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The current working directory.
Example
// show the current working directory of current process
dim myPID as Integer = LinuxProcessMBS.PID
dim myProcess as LinuxProcessMBS = LinuxProcessMBS.ProcessByPID(myPID)

MsgBox myProcess.CurrentWorkingDirectory

(Read only property)

Some examples using this property:

LinuxProcessMBS.Environment as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Linux MBS Linux Plugin 14.1 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The environment variables.

(Read only property)

LinuxProcessMBS.Name as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Linux MBS Linux Plugin 14.1 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The name of the process.
Example
// shows all process names in listbox
dim Processes() as LinuxProcessMBS = LinuxProcessMBS.Processes

for each p as LinuxProcessMBS in Processes
listbox1.addrow p.name
next

(Read only property)

LinuxProcessMBS.NumberOfThreads as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Linux MBS Linux Plugin 14.1 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The number of threads used by this process.

(Read only property)

LinuxProcessMBS.OpenFiles as Dictionary

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Linux MBS Linux Plugin 14.1 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
Queries details about open files.
Example
// show the paths of open files of current process in listbox
dim myPID as Integer = LinuxProcessMBS.PID
dim myProcess as LinuxProcessMBS = LinuxProcessMBS.ProcessByPID(myPID)
dim OpenFiles as Dictionary = myProcess.OpenFiles

for each key as Variant in OpenFiles.keys
listbox1.addrow OpenFiles.Value(key).StringValue
next

This dictionary contains the file descriptor number as key and the path to the file as text.
(Read only property)

Some examples using this property:

LinuxProcessMBS.ParentProcessID as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Linux MBS Linux Plugin 14.1 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The parent process ID.

(Read only property)

LinuxProcessMBS.Path as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Linux MBS Linux Plugin 14.1 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The path for this process.
Example
// show the path of current process
dim myPID as Integer = LinuxProcessMBS.PID
dim myProcess as LinuxProcessMBS = LinuxProcessMBS.ProcessByPID(myPID)
MsgBox myProcess.Path

(Read only property)

LinuxProcessMBS.ProcessID as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Linux MBS Linux Plugin 14.1 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The process ID.

(Read only property)

LinuxProcessMBS.StartTime as Date

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Linux MBS Linux Plugin 14.1 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The start time of the process.
Example
// show the start time of current process
dim myPID as Integer = LinuxProcessMBS.PID
dim myProcess as LinuxProcessMBS = LinuxProcessMBS.ProcessByPID(myPID)
dim d as date = myProcess.StartTime
MsgBox d.LongDate+" "+d.LongTime

(Read only property)

LinuxProcessMBS.State as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Linux MBS Linux Plugin 14.1 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The state of the process.

Can be Running, Sleeping, Disk Sleep, Zombie, Trace or Writing pages.
(Read only property)

The items on this page are in the following plugins: MBS Linux Plugin.


The biggest plugin in space...