Description
This function lists an account's active FTP sessions.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Ftp::list_sessions
— 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 process ID. |
A positive integer. |
833623 |
status |
string |
The session's status. |
|
IDLE |
user |
string |
The session's FTP user. |
A valid username. |
example |
file |
string |
The file that the FTP daemon is processing. |
|
example.html |
cmdline |
string |
A session status that the ps command generates. |
A valid string. |
pure-ftpd (IDLE) |
login |
string |
The session's login time. |
A string in extended date format. |
Wed Oct 15 12:49:03 2014 |
host |
string |
The FTP client's hostname. |
A valid hostname. |
hostname.example.com |
reason |
string |
A reason for failure. Note: This function only returns a reason value if it failed. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |