You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried for a while now, but I can't figure out what I am doing wrong, and the erromessages from sftpgo doesn't really help.
I have created a rule in the event manager that an action is supposed to run after a file has been uploaded.
That action is executing a python-script, with a few parameters.
I have tried every way possible to get this to run, without success so far.
First I tried to just point to the absolute path of the python-script in the Command-box (/var/lib/sftpgo/test.py). That didn't work
{"level":"debug","time":"2024-08-30T17:13:14.550","sender":"eventmanager","message":"executed command \"/var/lib/sftpgo/test.py\", elapsed: 1.195777ms, error: exit status 1"}
I tried pointing to /usr/bin/python as the command, and the absolut path of the script as the parameter, same errormessage.
The python script is extremely simple, it just oputputs a textline to a file. Running it outside sftpgo works just fine.
Is there some weird syntax I am unaware of resulting in the execution of the script to fail?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have tried for a while now, but I can't figure out what I am doing wrong, and the erromessages from sftpgo doesn't really help.
I have created a rule in the event manager that an action is supposed to run after a file has been uploaded.
That action is executing a python-script, with a few parameters.
I have tried every way possible to get this to run, without success so far.
First I tried to just point to the absolute path of the python-script in the Command-box (/var/lib/sftpgo/test.py). That didn't work
{"level":"debug","time":"2024-08-30T17:13:14.550","sender":"eventmanager","message":"executed command \"/var/lib/sftpgo/test.py\", elapsed: 1.195777ms, error: exit status 1"}
I tried pointing to /usr/bin/python as the command, and the absolut path of the script as the parameter, same errormessage.
The python script is extremely simple, it just oputputs a textline to a file. Running it outside sftpgo works just fine.
Is there some weird syntax I am unaware of resulting in the execution of the script to fail?
Beta Was this translation helpful? Give feedback.
All reactions