Check currently running command in code


When running a command with Rclone , how can i check which command is currently running?
Let's say I run on terminal:

./rclone sync some_folder_path/ --config some_config ...

How can I fetch from the inside code which command has been run? Say a bool variable is set to true when sync command is detected. How can I do that?


For logging, you can run with "-v" to get more output or "-vv" to see even more output.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.