Description
This function lists the FTP server's active sessions.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
This function does not accept parameters.
Returns
Return |
Type |
Description |
Possible values |
Example |
pid |
string |
The session's PID. |
An integer value that represents the FTP session's process ID. |
6735 |
status |
string |
The session's status. |
|
IDLE |
file |
string |
The file that the session is processing. |
|
file.txt |
user |
string |
The FTP account username. |
The username for an FTP account on the cPanel account. |
ftpaccount |
cmdline |
string |
Process information. |
Information about the FTP process, from the ps(process status) command. |
pure-ftpd (IDLE) |
host |
string |
The hostname that connected to the FTP server. |
A valid hostname. |
localhost |
login |
string |
The FTP session login time. |
The time at which the FTP session started, in human-readable format. |
Tue Apr 23 16:23:23 2013 |